Replace static anonymous function and replace it with normal anonymous function as static ones are only supported on PHP5.4 and up
parent
f4d3a1e478
commit
32b70142d9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue