Use array_search() in strict mode

parent 6c34a811
......@@ -466,7 +466,7 @@ class Table extends AbstractAsset
$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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment