Skip to content

Commit 465fd93

Browse files
Matthias Günterorediggerco
Matthias Günter
authored andcommitted
fix: make compatible with symlinked repository
Resolves #9
1 parent c47a0ef commit 465fd93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Comcast/PhpLegalLicenses/Command/GenerateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function getTextForDependency($dependency)
9191
$description = isset($dependency['description']) ? $dependency['description'] : 'Not configured.';
9292
$version = $dependency['version'];
9393
$homepage = isset($dependency['homepage']) ? $dependency['homepage'] : 'Not configured.';
94-
$sha = str_split($dependency['source']['reference'], 7)[0];
94+
$sha = isset($dependency['source']) ? str_split($dependency['source']['reference'], 7)[0] : 'no sha';
9595
$licenseNames = isset($dependency['license']) ? implode(', ', $dependency['license']) : 'Not configured.';
9696
$license = $this->getFullLicenseText($name);
9797

0 commit comments

Comments
 (0)