Skip to content

Commit

Permalink
fix: make compatible with symlinked repository
Browse files Browse the repository at this point in the history
Resolves #9
  • Loading branch information
Matthias Günter authored and orediggerco committed Jan 16, 2020
1 parent c47a0ef commit 465fd93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Comcast/PhpLegalLicenses/Command/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function getTextForDependency($dependency)
$description = isset($dependency['description']) ? $dependency['description'] : 'Not configured.';
$version = $dependency['version'];
$homepage = isset($dependency['homepage']) ? $dependency['homepage'] : 'Not configured.';
$sha = str_split($dependency['source']['reference'], 7)[0];
$sha = isset($dependency['source']) ? str_split($dependency['source']['reference'], 7)[0] : 'no sha';
$licenseNames = isset($dependency['license']) ? implode(', ', $dependency['license']) : 'Not configured.';
$license = $this->getFullLicenseText($name);

Expand Down

0 comments on commit 465fd93

Please sign in to comment.