Fixes a problem with path based repositories on PHP7.4 where an attempt is made to access null as an array
parent
bfba228b5a
commit
550c01b471
|
@ -155,7 +155,11 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
|
|||
|
||||
if (!isset($package['version'])) {
|
||||
$versionData = $this->versionGuesser->guessVersion($package, $path);
|
||||
if (is_array($versionData)) {
|
||||
$package['version'] = $versionData['pretty_version'] ?: 'dev-master';
|
||||
} else {
|
||||
$package['version'] = 'dev-master';
|
||||
}
|
||||
}
|
||||
|
||||
$output = '';
|
||||
|
|
Loading…
Reference in New Issue