mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Static lambda (#10854)
Lambdas not (indirect) referencing $this must be declared static.
This commit is contained in:
parent
ef276d26d6
commit
4131f7cf4c
77 changed files with 206 additions and 206 deletions
|
@ -121,7 +121,7 @@ class SolverProblemsException extends \RuntimeException
|
|||
array_shift($paths);
|
||||
}
|
||||
|
||||
$ignoreExtensionsArguments = implode(" ", array_map(function ($extension) {
|
||||
$ignoreExtensionsArguments = implode(" ", array_map(static function ($extension) {
|
||||
return "--ignore-platform-req=$extension";
|
||||
}, $missingExtensions));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue