File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,10 @@ public function scan(array $scanPaths): array
93
93
continue ;
94
94
}
95
95
96
+ if ($ this ->isComposerInternalClass ($ usedSymbol )) {
97
+ continue ;
98
+ }
99
+
96
100
if (!isset ($ this ->optimizedClassmap [$ usedSymbol ])) {
97
101
if (!$ this ->isConstOrFunction ($ usedSymbol )) {
98
102
$ errors [$ usedSymbol ] = new ClassmapEntryMissingError ($ usedSymbol , $ filePath );
@@ -225,4 +229,12 @@ private function isConstOrFunction(string $usedClass): bool
225
229
return defined ($ usedClass ) || function_exists ($ usedClass );
226
230
}
227
231
232
+ /**
233
+ * Those are always available: https://getcomposer.org/doc/07-runtime.md#installed-versions
234
+ */
235
+ private function isComposerInternalClass (string $ usedSymbol ): bool
236
+ {
237
+ return $ usedSymbol === 'Composer \\InstalledVersions ' ;
238
+ }
239
+
228
240
}
Original file line number Diff line number Diff line change 18
18
19
19
echo \DIRECTORY_SEPARATOR ;
20
20
echo \strlen ('' );
21
+
22
+ \Composer \InstalledVersions::getInstalledPackages ();
You can’t perform that action at this time.
0 commit comments