Skip to content

Commit

Permalink
Merge pull request #29 from dejwCake/fix-c1
Browse files Browse the repository at this point in the history
Fix composer v1 ClassLoader getRegisteredLoaders method missing
  • Loading branch information
Seldaek authored Sep 13, 2021
2 parents fff576a + 192176a commit b174585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PackageVersions/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private static function composer2ApiUsable(): bool
}
} else {
$rawData = InstalledVersions::getRawData();
if ($rawData === []) {
if ($rawData === null || $rawData === []) {
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/PackageVersions/Versions.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private static function composer2ApiUsable(): bool
}
} else {
$rawData = InstalledVersions::getRawData();
if ($rawData === []) {
if ($rawData === null || $rawData === []) {
return false;
}
}
Expand Down

0 comments on commit b174585

Please sign in to comment.