Skip to content

Commit a3e7973

Browse files
authored
Merge branch '0.x' into chore-phpstan
2 parents e82426e + 16c2d26 commit a3e7973

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Variable \\$tval on left side of \\?\\? always exists and is not nullable\\.$#"
5-
count: 1
6-
path: src/Phinx/Config/Config.php
7-
83
-
94
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
105
count: 1

src/Phinx/Db/Adapter/SQLiteAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,8 +1168,8 @@ protected function calculateNewTableColumns(string $tableName, string|false $col
11681168
$writeColumns[] = $writeName;
11691169
}
11701170

1171-
$selectColumns = array_filter($selectColumns, 'strlen');
1172-
$writeColumns = array_filter($writeColumns, 'strlen');
1171+
$selectColumns = array_filter($selectColumns, fn($v) => $v && strlen($v) > 0);
1172+
$writeColumns = array_filter($writeColumns, fn($v) => $v && strlen($v) > 0);
11731173
$selectColumns = array_map([$this, 'quoteColumnName'], $selectColumns);
11741174
$writeColumns = array_map([$this, 'quoteColumnName'], $writeColumns);
11751175

0 commit comments

Comments
 (0)