Skip to content

Commit 906d8a0

Browse files
authored
Merge pull request #100 from WebFiori/dev
fix: Fix to Recursion Bug
2 parents f861219 + 264407b commit 906d8a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webfiori/database/migration/MigrationsRunner.php

+5
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ private function scanPathForMigrations() {
7979

8080
try {
8181
if (class_exists($clazz)) {
82+
$xClazz = static::class;
83+
//Prevent recursion
84+
if (trim($clazz, '\\') == $xClazz) {
85+
continue;
86+
}
8287
$instance = new $clazz();
8388

8489
if ($instance instanceof AbstractMigration) {

0 commit comments

Comments
 (0)