Merge pull request #8296 from rbairwell/fix-php74-accessarray-offset-on-path
Fixes a problem with path based repositories on PHP7.4pull/8305/head
commit
d3dc280322
|
@ -155,7 +155,11 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
|
|||
|
||||
if (!isset($package['version'])) {
|
||||
$versionData = $this->versionGuesser->guessVersion($package, $path);
|
||||
$package['version'] = $versionData['pretty_version'] ?: 'dev-master';
|
||||
if (is_array($versionData) && $versionData['pretty_version']) {
|
||||
$package['version'] = $versionData['pretty_version'];
|
||||
} else {
|
||||
$package['version'] = 'dev-master';
|
||||
}
|
||||
}
|
||||
|
||||
$output = '';
|
||||
|
|
Loading…
Reference in New Issue