mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Fixing array accessing
This commit is contained in:
parent
f6899e5c38
commit
582e361a88
2 changed files with 8 additions and 7 deletions
|
@ -129,7 +129,8 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
|
|||
);
|
||||
|
||||
if (!isset($package['version'])) {
|
||||
$package['version'] = $this->versionGuesser->guessVersion($package, $path)['version'] ?: 'dev-master';
|
||||
$versionData = $this->versionGuesser->guessVersion($package, $path);
|
||||
$package['version'] = $versionData['version'] ?: 'dev-master';
|
||||
}
|
||||
|
||||
$output = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue