Merge pull request #9076 from TysonAndre/named-arguments-bugfix
Properly support PHP 8.0 Named Arguments (Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters)pull/9092/head
commit
868aa10fb9
|
@ -81,7 +81,7 @@ class DefaultPolicy implements PolicyInterface
|
|||
$literals = $this->pruneRemoteAliases($pool, $literals);
|
||||
}
|
||||
|
||||
$selected = call_user_func_array('array_merge', $packages);
|
||||
$selected = call_user_func_array('array_merge', array_values($packages));
|
||||
|
||||
// now sort the result across all packages to respect replaces across packages
|
||||
usort($selected, function ($a, $b) use ($policy, $pool, $installedMap, $requiredPackage) {
|
||||
|
|
Loading…
Reference in New Issue