Skip to content

Commit

Permalink
add type #38909
Browse files Browse the repository at this point in the history
  • Loading branch information
dartcafe committed Jun 20, 2023
1 parent d9e9d4e commit 9b31680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/DB/PostgreSqlMigrator.php
Expand Up @@ -42,7 +42,7 @@ protected function getDiff(Schema $targetSchema, \Doctrine\DBAL\Connection $conn
}
$fromDefault = $column->fromColumn->getDefault();
$toDefault = $column->column->getDefault();
$fromDefault = trim($fromDefault, "()");
$fromDefault = trim((string) $fromDefault, "()");

// by intention usage of !=
return $fromDefault != $toDefault;
Expand Down

0 comments on commit 9b31680

Please sign in to comment.