Skip to content

Commit b174585

Browse files
authored
Merge pull request #29 from dejwCake/fix-c1
Fix composer v1 ClassLoader getRegisteredLoaders method missing
2 parents fff576a + 192176a commit b174585

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PackageVersions/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private static function composer2ApiUsable(): bool
127127
}
128128
} else {
129129
$rawData = InstalledVersions::getRawData();
130-
if ($rawData === []) {
130+
if ($rawData === null || $rawData === []) {
131131
return false;
132132
}
133133
}

src/PackageVersions/Versions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private static function composer2ApiUsable(): bool
8282
}
8383
} else {
8484
$rawData = InstalledVersions::getRawData();
85-
if ($rawData === []) {
85+
if ($rawData === null || $rawData === []) {
8686
return false;
8787
}
8888
}

0 commit comments

Comments
 (0)