1
0
Fork 0

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
Jordi Boggiano 2020-07-30 14:53:12 +02:00 committed by GitHub
commit 868aa10fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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