Skip to content

Commit

Permalink
Change is_null with strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ajibarra committed Sep 23, 2022
1 parent b2fef75 commit e7d7f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/MigrationHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public function getColumnOption(array $options)
if (isset($columnOptions['signed']) && $columnOptions['signed'] === true) {
unset($columnOptions['signed']);
}
if (is_null($columnOptions['precision'])) {
if ($columnOptions['precision'] === null) {
unset($columnOptions['precision']);
} else {
// due to Phinx using different naming for the precision and scale to CakePHP
Expand Down

0 comments on commit e7d7f1b

Please sign in to comment.