Skip to content

Commit 264407b

Browse files
committed
fix: Fix to Recursion Bug
1 parent bccb467 commit 264407b

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)