Skip to content

Commit

Permalink
Use array_search() in strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Apr 12, 2020
1 parent 6c34a81 commit 93e8979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema/Table.php
Expand Up @@ -466,7 +466,7 @@ public function getColumns() : array
$colNames = array_unique(array_merge($pkCols, $fkCols, array_keys($columns)));

uksort($columns, static function ($a, $b) use ($colNames) : int {
return array_search($a, $colNames) <=> array_search($b, $colNames);
return array_search($a, $colNames, true) <=> array_search($b, $colNames, true);
});

return $columns;
Expand Down

0 comments on commit 93e8979

Please sign in to comment.