Fix error with binaries in PHP8
parent
b21ee81c99
commit
4e8ca92b6f
|
@ -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'])) {
|
||||
|
|
Loading…
Reference in New Issue