Skip to content

Commit 466ae9b

Browse files
committed
wip
1 parent 5c01b9f commit 466ae9b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/core/src/Kernel/LoadDiscoveryClasses.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Tempest\Discovery\DiscoveryLocation;
1717
use Tempest\Discovery\SkipDiscovery;
1818
use Tempest\Reflection\ClassReflector;
19+
use Tests\Tempest\Fixtures\Discovery\HiddenMigratableDatabaseMigration;
1920
use Throwable;
2021

2122
/** @internal */
@@ -171,7 +172,7 @@ private function scan(DiscoveryLocation $location, array $discoveries, string $p
171172
if ($input instanceof ClassReflector) {
172173
// Check whether this class is marked with `#[SkipDiscovery]`
173174
if ($this->shouldSkipDiscoveryForClass($discovery, $input)) {
174-
return;
175+
continue;
175176
}
176177

177178
$discovery->discover($location, $input);

tests/Integration/Core/LoadDiscoveryClassesTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function do_not_discover_except(): void
5050
iterator_to_array($migrations),
5151
static fn (DatabaseMigration $migration) => $migration instanceof HiddenMigratableDatabaseMigration,
5252
);
53+
5354
$this->assertCount(1, $foundMigrations, 'Expected one hidden migration to be found');
5455
}
5556
}

0 commit comments

Comments
 (0)