1
0
Fork 0

Target ClassMapGenerator ignoring of invalid PSR classes for 2.0

pull/8611/head
Jordi Boggiano 2020-02-14 10:03:53 +01:00
parent fe5b4fa4cc
commit 8fd70d2dc4
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 3 deletions

View File

@ -181,16 +181,16 @@ class ClassMapGenerator
if (empty($validClasses)) { if (empty($validClasses)) {
foreach ($rejectedClasses as $class) { foreach ($rejectedClasses as $class) {
trigger_error( trigger_error(
"Class $class located in ".preg_replace('{^'.preg_quote(getcwd()).'}', '.', $filePath, 1)." does not comply with $namespaceType autoloading standard. It will not autoload anymore in Composer v1.11+.", "Class $class located in ".preg_replace('{^'.preg_quote(getcwd()).'}', '.', $filePath, 1)." does not comply with $namespaceType autoloading standard. It will not autoload anymore in Composer v2.0.",
E_USER_DEPRECATED E_USER_DEPRECATED
); );
} }
// TODO enable in Composer v1.11 or 2.0 whichever comes first // TODO enable in Composer 2.0
//return array(); //return array();
} }
// TODO enable in Composer v1.11 or 2.0 whichever comes first & unskip test in AutoloadGeneratorTest::testPSRToClassMapIgnoresNonPSRClasses // TODO enable in Composer 2.0 & unskip test in AutoloadGeneratorTest::testPSRToClassMapIgnoresNonPSRClasses
//return $validClasses; //return $validClasses;
return $classes; return $classes;
} }