Skip to content

Commit b2e17c3

Browse files
authored
JsonContainsKey supported
Fix warnings with JsonContainsKey where clause <warning> WARNING </warning> Undefined array key "operator" in vendor/genealabs/laravel-model-caching/src/CacheKey.php on line 272. <warning> DEPRECATED </warning> strtolower(): Passing null to parameter mikebronner#1 ($string) of type string is deprecated in vendor/genealabs/laravel-model-caching/src/CacheKey.php on line 272. Add JsonContainsKey type
1 parent 6045f3d commit b2e17c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CacheKey.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ protected function getTableSlug() : string
267267

268268
protected function getTypeClause($where) : string
269269
{
270-
$type = in_array($where["type"], ["InRaw", "In", "NotIn", "Null", "NotNull", "between", "NotInSub", "InSub", "JsonContains", "Fulltext"])
270+
$type = in_array($where["type"], ["InRaw", "In", "NotIn", "Null", "NotNull", "between", "NotInSub", "InSub", "JsonContains", "Fulltext", "JsonContainsKey"])
271271
? strtolower($where["type"])
272272
: strtolower($where["operator"]);
273273

0 commit comments

Comments
 (0)