Skip to content
Snippets Groups Projects

Issue #3358570: InstalledPackage::scanForProjectName should check if project key is empty before checking if it is string

Merged Issue #3358570: InstalledPackage::scanForProjectName should check if project key is empty before checking if it is string
2 unresolved threads
2 unresolved threads
Files
2
@@ -98,7 +98,7 @@ final class InstalledPackage {
@@ -98,7 +98,7 @@ final class InstalledPackage {
$info = file_get_contents($match[0]);
$info = file_get_contents($match[0]);
$info = Yaml::decode($info);
$info = Yaml::decode($info);
if (is_string($info['project']) && !empty($info['project'])) {
if (!empty($info['project'])) {
return $info['project'];
return $info['project'];
}
}
}
}
Loading