From 7316cceedb10ee7a2cbb219afa6b9a33e6fa12e7 Mon Sep 17 00:00:00 2001 From: Ivan Mykhavko Tegos Date: Fri, 23 Nov 2018 16:12:02 +0200 Subject: [PATCH] fix notice `Undefined index: operator` #69 --- src/CacheKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CacheKey.php b/src/CacheKey.php index f23b312..25ed2b7 100644 --- a/src/CacheKey.php +++ b/src/CacheKey.php @@ -97,7 +97,7 @@ protected function getQueryColumns(array $columns) : string protected function getTypeClause($where) : string { - $type = in_array($where["type"], ["In", "NotIn", "Null", "NotNull", "between", "NotInSub", "InSub", "JsonContains"]) + $type = in_array($where["type"], ["InRaw", "In", "NotIn", "Null", "NotNull", "between", "NotInSub", "InSub", "JsonContains"]) ? strtolower($where["type"]) : strtolower($where["operator"]);