1
0
Fork 0
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:
Mathias Reker ⚡️ 2022-06-22 14:19:18 +02:00 committed by GitHub
parent ef276d26d6
commit 4131f7cf4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
77 changed files with 206 additions and 206 deletions

View file

@ -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));