1
0
Fork 0

Merge pull request #9170 from glaubinix/f/composer-repository-withou-sha1-include

ComposerRepository: avoid notice if includes do not provide a sha1
pull/9183/head
Jordi Boggiano 2020-09-01 16:57:16 +02:00 committed by GitHub
commit 3e56ec2881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
if (isset($data['includes'])) { if (isset($data['includes'])) {
foreach ($data['includes'] as $include => $metadata) { foreach ($data['includes'] as $include => $metadata) {
if ($this->cache->sha1($include) === $metadata['sha1']) { if (isset($metadata['sha1']) && $this->cache->sha1($include) === $metadata['sha1']) {
$includedData = json_decode($this->cache->read($include), true); $includedData = json_decode($this->cache->read($include), true);
} else { } else {
$includedData = $this->fetchFile($include); $includedData = $this->fetchFile($include);