Skip to content

Commit

Permalink
Remove silent skip of namespaces without common root (Will still be s…
Browse files Browse the repository at this point in the history
…ilently passing if valid classes are found, will only show up when requesting PSR violations)
  • Loading branch information
PrinsFrank committed Apr 30, 2024
1 parent b7366ce commit e28e78c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ClassMapGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,6 @@ private function filterByNamespace(array $classes, string $filePath, string $bas
$realSubPath = substr($realSubPath, 0, $dotPosition === false ? PHP_INT_MAX : $dotPosition);

foreach ($classes as $class) {
// silently skip if ns doesn't have common root
if ('' !== $baseNamespace && 0 !== strpos($class, $baseNamespace)) {
continue;
}
// transform class name to file path and validate
if ('psr-0' === $namespaceType) {
$namespaceLength = strrpos($class, '\\');
Expand Down

0 comments on commit e28e78c

Please sign in to comment.