Skip to content

Commit 05084e2

Browse files
committed
Fix PHPStan error - getName() returns string not nullable
1 parent 85b4907 commit 05084e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Db/Action/ChangeColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(TableMetadata $table, string $columnName, Column $co
3737
$this->column = $column;
3838

3939
// if the name was omitted use the existing column name
40-
if ($column->getName() === null || $column->getName() === '') {
40+
if ($column->getName() === '') {
4141
$column->setName($columnName);
4242
}
4343
}

0 commit comments

Comments
 (0)