1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00

Fixing array accessing

This commit is contained in:
Sash 2016-02-22 21:47:33 +00:00
parent f6899e5c38
commit 582e361a88
2 changed files with 8 additions and 7 deletions

View file

@ -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 = '';