1
0
Fork 0

Fix new phpstan error

pull/12261/head
Jordi Boggiano 2025-01-08 14:09:14 +01:00
parent e81df52e53
commit e751c8e4eb
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class Tar
}
$composerJsonPath = key($topLevelPaths).'/composer.json';
if ($topLevelPaths && isset($phar[$composerJsonPath])) {
if (\count($topLevelPaths) > 0 && isset($phar[$composerJsonPath])) {
return $phar[$composerJsonPath]->getContent();
}