Skip to content

Commit

Permalink
[1.x] First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Mar 3, 2024
1 parent db155c4 commit ae655c7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Discoverer.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,13 @@ public function classes(): Collection
// Preemptively pass this class. Now it's left for the filters to keep allowing it.
$passes = true;

// @phpstan-ignore-next-line
foreach ($this->filters as $callback) {
// If the callback returns false, then didn't pass.
if (!$passes = $callback($reflection)) {
break;
}
}

// @phpstan-ignore-next-line
if ($passes) {
$classes->put($reflection->name, $reflection);
}
Expand Down

0 comments on commit ae655c7

Please sign in to comment.