Skip to content

Commit 86fb7b6

Browse files
committed
🔥 Drop bad class from test suite - this feature (ignoring psr-4 structure mismatch) is not supported anymore
1 parent 498050c commit 86fb7b6

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/DependencyInjection/GraphQLiteCompilerPass.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,9 @@ private function getCodeCache(): ClassBoundCacheContractInterface
472472
*/
473473
private function getClassList(string $namespace): Generator
474474
{
475+
// dev note: this code will be broken if there's a broken class (which has mismatch in real namespace
476+
// with PSR-4 configuration) in the configured namespace
477+
// see also: https://github.com/alekitto/class-finder/issues/24#issuecomment-2480847327
475478
$finder = new ComposerFinder();
476479
foreach ($finder->inNamespace($namespace) as $class) {
477480
assert($class instanceof ReflectionClass);

tests/Fixtures/Entities/BadClass.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)