We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c47a0ef commit 465fd93Copy full SHA for 465fd93
src/Comcast/PhpLegalLicenses/Command/GenerateCommand.php
@@ -91,7 +91,7 @@ protected function getTextForDependency($dependency)
91
$description = isset($dependency['description']) ? $dependency['description'] : 'Not configured.';
92
$version = $dependency['version'];
93
$homepage = isset($dependency['homepage']) ? $dependency['homepage'] : 'Not configured.';
94
- $sha = str_split($dependency['source']['reference'], 7)[0];
+ $sha = isset($dependency['source']) ? str_split($dependency['source']['reference'], 7)[0] : 'no sha';
95
$licenseNames = isset($dependency['license']) ? implode(', ', $dependency['license']) : 'Not configured.';
96
$license = $this->getFullLicenseText($name);
97
0 commit comments