[CORE][DB] Specify desired case in array_change_case, for clarity

This commit is contained in:
Hugo Sales 2021-08-04 20:04:18 +00:00
parent 0ae67d96ea
commit 2dd3511149
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -158,7 +158,7 @@ abstract class DB
*/
public static function findBy(string $table, array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array
{
$criteria = array_change_key_case($criteria);
$criteria = array_change_key_case($criteria, CASE_LOWER);
$ops = array_intersect(array_keys($criteria), self::$find_by_ops);
$repo = self::getRepository($table);
if (empty($ops)) {