1
0
Fork 0

Fix error with binaries in PHP8

pull/9537/head
Fabien Villepinte 2020-12-02 13:55:58 +01:00
parent b21ee81c99
commit 4e8ca92b6f
1 changed files with 5 additions and 2 deletions

View File

@ -65,10 +65,13 @@ class ArrayLoader implements LoaderInterface
}
if (isset($config['bin'])) {
foreach ((array) $config['bin'] as $key => $bin) {
if (!\is_array($config['bin'])) {
$config['bin'] = array($config['bin']);
}
foreach ($config['bin'] as $key => $bin) {
$config['bin'][$key] = ltrim($bin, '/');
}
$package->setBinaries((array) $config['bin']);
$package->setBinaries($config['bin']);
}
if (isset($config['installation-source'])) {