diff --git a/.phive/phars.xml b/.phive/phars.xml
index 1f56b2bc..726b7777 100644
--- a/.phive/phars.xml
+++ b/.phive/phars.xml
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/phpstan.neon b/phpstan.neon
index c4f06102..cd57a9b2 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -3,9 +3,11 @@ includes:
parameters:
level: 7
- checkMissingIterableValueType: false
- checkGenericClassInNonGenericObjectType: false
paths:
- src/
bootstrapFiles:
- tests/bootstrap.php
+ ignoreErrors:
+ - identifier: missingType.iterableValue
+ - identifier: missingType.generics
+
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index c046f594..b2c688d5 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -152,8 +152,5 @@
regexpParseColumn]]>
regexpParseField]]>
-
- empty($indexes[$indexName])
-
diff --git a/src/Command/MigrationsCommand.php b/src/Command/MigrationsCommand.php
index 47f5e5cd..f5d777d1 100644
--- a/src/Command/MigrationsCommand.php
+++ b/src/Command/MigrationsCommand.php
@@ -61,7 +61,7 @@ public static function defaultName(): string
/**
* Array of arguments to run the shell with.
*
- * @var array
+ * @var list
*/
public array $argv = [];
@@ -198,6 +198,7 @@ public function run(array $argv, ConsoleIo $io): ?int
$name = explode(' ', $name);
array_unshift($argv, ...$name);
+ /** @var list $argv */
$this->argv = $argv;
return parent::run($argv, $io);
diff --git a/src/Db/Adapter/SqliteAdapter.php b/src/Db/Adapter/SqliteAdapter.php
index ab66ba69..6f3ceab1 100644
--- a/src/Db/Adapter/SqliteAdapter.php
+++ b/src/Db/Adapter/SqliteAdapter.php
@@ -1098,8 +1098,12 @@ protected function calculateNewTableColumns(string $tableName, string|false $col
}
}
- $selectColumns = array_filter($selectColumns, 'strlen');
- $writeColumns = array_filter($writeColumns, 'strlen');
+ $selectColumns = array_filter($selectColumns, function ($value) {
+ return strlen($value) > 0;
+ });
+ $writeColumns = array_filter($writeColumns, function ($value) {
+ return strlen($value) > 0;
+ });
$selectColumns = array_map([$this, 'quoteColumnName'], $selectColumns);
$writeColumns = array_map([$this, 'quoteColumnName'], $writeColumns);