1
0
Fork 0

VcsRepository: fix undefined index notice in preProcess

pull/7756/head
Stephan Vock 2018-10-29 12:01:46 +01:00
parent 40a0c1d411
commit 105477218d
1 changed files with 2 additions and 1 deletions

View File

@ -295,7 +295,8 @@ class VcsRepository extends ArrayRepository implements ConfigurableRepositoryInt
protected function preProcess(VcsDriverInterface $driver, array $data, $identifier)
{
// keep the name of the main identifier for all packages
$data['name'] = $this->packageName ?: $data['name'];
$dataPackageName = isset($data['name']) ? $data['name'] : null;
$data['name'] = $this->packageName ?: $dataPackageName;
if (!isset($data['dist'])) {
$data['dist'] = $driver->getDist($identifier);