From 2dd35111499006f694a0866342c45d9df6f66999 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Wed, 4 Aug 2021 20:04:18 +0000 Subject: [PATCH] [CORE][DB] Specify desired case in array_change_case, for clarity --- src/Core/DB/DB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/DB/DB.php b/src/Core/DB/DB.php index b85f943c7c..951c499405 100644 --- a/src/Core/DB/DB.php +++ b/src/Core/DB/DB.php @@ -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)) {