addendum to #7428
parent
bbee0a6d85
commit
0db48b4f2e
|
@ -129,11 +129,15 @@ class ArtifactRepository extends ArrayRepository implements ConfigurableReposito
|
|||
$zip->open($file->getPathname());
|
||||
|
||||
if (0 == $zip->numFiles) {
|
||||
$zip->close();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
$foundFileIndex = $this->locateFile($zip, 'composer.json');
|
||||
if (false === $foundFileIndex) {
|
||||
$zip->close();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue