From 12fcdca2b38cd0db5ede9a7a79798cde4bb18b74 Mon Sep 17 00:00:00 2001 From: Lito Date: Thu, 10 Mar 2022 17:08:06 +0100 Subject: [PATCH] Check callable on operatorForWhere with useAsCallable --- src/Illuminate/Collections/Traits/EnumeratesValues.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Collections/Traits/EnumeratesValues.php b/src/Illuminate/Collections/Traits/EnumeratesValues.php index bf636c7ca790..71c5e600f2c2 100644 --- a/src/Illuminate/Collections/Traits/EnumeratesValues.php +++ b/src/Illuminate/Collections/Traits/EnumeratesValues.php @@ -1002,7 +1002,7 @@ protected function getArrayableItems($items) */ protected function operatorForWhere($key, $operator = null, $value = null) { - if (is_callable($key)) { + if ($this->useAsCallable($key)) { return $key; }