1
0
Fork 0

Replace static anonymous function and replace it with normal anonymous function as static ones are only supported on PHP5.4 and up

pull/9899/head
Frank Prins 2021-05-20 20:55:00 +02:00
parent f4d3a1e478
commit 32b70142d9
1 changed files with 2 additions and 2 deletions

View File

@ -100,8 +100,8 @@ EOT
}
$lockData = $locker->getLockData();
$lockPackageNames = array_map(static function($lockPackage) {return $lockPackage['name'];}, $lockData['packages']);
$devLockPackageNames = array_map(static function($devLockPackage) {return $devLockPackage['name'];}, $lockData['packages-dev']);
$lockPackageNames = array_map(function($lockPackage) {return $lockPackage['name'];}, $lockData['packages']);
$devLockPackageNames = array_map(function($devLockPackage) {return $devLockPackage['name'];}, $lockData['packages-dev']);
$missingRequiredPackages = array_diff(array_keys($composer->getPackage()->getRequires()), $lockPackageNames);
$missingDevRequiredPackages = array_diff(array_keys($composer->getPackage()->getDevRequires()), $devLockPackageNames);
if (count(array_merge($missingRequiredPackages, $missingDevRequiredPackages)) > 0) {