Skip to content

Commit

Permalink
Merge pull request #5 from Hodgy/bugfix/default-composer-ignore
Browse files Browse the repository at this point in the history
Need to add a default return for getting from composer extras
  • Loading branch information
Elendev authored Mar 11, 2019
2 parents 65387aa + 6423b8a commit c8ca320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PushCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private function getNexusExtra($parameter, $default = null)
private function getDirectoriesToIgnore(InputInterface $input)
{
$optionalIgnore = $input->getOption('ignore-dirs');
$composerIgnores = $this->getNexusExtra('ignore-dirs');
$composerIgnores = $this->getNexusExtra('ignore-dirs', []);

$ignore = array_merge($composerIgnores, $optionalIgnore, ['vendor']);
return array_unique($ignore);
Expand Down

0 comments on commit c8ca320

Please sign in to comment.