Browse Source

refactor: improve code clarity in migration version extraction

Anankke 3 months ago
parent
commit
00d8ad886d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Command/Migration.php

+ 1 - 1
src/Command/Migration.php

@@ -80,7 +80,7 @@ END;
                     continue;
                 }
 
-                $version = (int) explode('-', $file, 1)[0];
+                $version = (int) strstr($file, '-', true);
                 echo 'Found migration version ' . $version;
 
                 if ($version > $latest) {