aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Migrator.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Minz/Migrator.php')
-rw-r--r--lib/Minz/Migrator.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Minz/Migrator.php b/lib/Minz/Migrator.php
index 661bc9c5d..ef4bce48f 100644
--- a/lib/Minz/Migrator.php
+++ b/lib/Minz/Migrator.php
@@ -38,11 +38,11 @@ class Minz_Migrator
$applied_migrations = array_filter(explode("\n", $applied_migrations));
$migration_files = scandir($migrations_path);
- $migration_files = array_filter($migration_files, function ($filename) {
+ $migration_files = array_filter($migration_files, static function (string $filename) {
$file_extension = pathinfo($filename, PATHINFO_EXTENSION);
return $file_extension === 'php';
});
- $migration_versions = array_map(function ($filename) {
+ $migration_versions = array_map(static function (string $filename) {
return basename($filename, '.php');
}, $migration_files);
@@ -225,9 +225,8 @@ class Minz_Migrator
}
/**
- * @return boolean Return true if the application is up-to-date, false
- * otherwise. If no migrations are registered, it always
- * returns true.
+ * @return bool Return true if the application is up-to-date, false otherwise.
+ * If no migrations are registered, it always returns true.
*/
public function upToDate(): bool {
// Counting versions is enough since we cannot apply a version which