diff options
| author | 2025-08-07 22:19:45 +0200 | |
|---|---|---|
| committer | 2025-08-07 22:19:45 +0200 | |
| commit | 62f32ccadff77594f5b8e3ad24c4c2541ff35885 (patch) | |
| tree | 29689e66fd16fcbeb385cda554890d45d66e58c2 /lib/Minz/Migrator.php | |
| parent | 149136fbe252cca4cb8dcdb463df135094bc0f87 (diff) | |
PHPStan: finalise strictArrayFilter (#7794)
As well as reportPossiblyNonexistentConstantArrayOffset.
And disable PHPStan-next from GitHub Action, since the work is completed for now.
Diffstat (limited to 'lib/Minz/Migrator.php')
| -rw-r--r-- | lib/Minz/Migrator.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Migrator.php b/lib/Minz/Migrator.php index 47df98e7f..c7e8ea15d 100644 --- a/lib/Minz/Migrator.php +++ b/lib/Minz/Migrator.php @@ -33,7 +33,7 @@ class Minz_Migrator if ($applied_migrations === false) { return "Cannot open the {$applied_migrations_path} file"; } - $applied_migrations = array_filter(explode("\n", $applied_migrations)); + $applied_migrations = array_filter(explode("\n", $applied_migrations), fn(string $migration): bool => trim($migration) !== ''); $migration_files = scandir($migrations_path) ?: []; $migration_files = array_filter($migration_files, static function (string $filename) { |
