@@ -62,7 +62,7 @@ public function migrateAll(): self
6262 $ files = $ this ->migrationStorage ->findAll ();
6363 $ migratedFileNames = $ this ->migrationRepository ->getAll ();
6464
65- $ nonMigratedFiles = $ files ->filter (static function (MigrationFile $ file ) use ($ migratedFileNames ) {
65+ $ nonMigratedFiles = $ files ->filter (function (MigrationFile $ file ) use ($ migratedFileNames ) {
6666 return ! $ migratedFileNames ->contains ($ file ->getName ());
6767 });
6868
@@ -125,7 +125,7 @@ public function showStatus(): self
125125
126126 $ headers = ['Ran? ' , 'Last batch? ' , 'Migration ' ];
127127
128- $ rows = $ files ->map (static function (MigrationFile $ file ) use ($ migratedFileNames , $ migratedLastBatchFileNames ) {
128+ $ rows = $ files ->map (function (MigrationFile $ file ) use ($ migratedFileNames , $ migratedLastBatchFileNames ) {
129129 return [
130130 $ migratedFileNames ->contains ($ file ->getName ()) ? '<info>Yes</info> ' : '<comment>No</comment> ' ,
131131 $ migratedLastBatchFileNames ->contains ($ file ->getName ()) ? '<info>Yes</info> ' : '<comment>No</comment> ' ,
@@ -185,7 +185,7 @@ protected function rollback(Collection $fileNames): self
185185 } elseif ($ fileNames ->count () != $ files ->count ()) {
186186 $ this ->output ->writeln (
187187 '<error>Migration is not found:</error> ' .
188- implode (', ' , $ fileNames ->diff ($ files ->map (static function (MigrationFile $ file ) {
188+ implode (', ' , $ fileNames ->diff ($ files ->map (function (MigrationFile $ file ) {
189189 return $ file ->getName ();
190190 }))->toArray ())
191191 );
0 commit comments