Skip to content

Commit

Permalink
Check callable on operatorForWhere with useAsCallable (#41424)
Browse files Browse the repository at this point in the history
  • Loading branch information
eusonlito committed Mar 10, 2022
1 parent 59c27e1 commit 001e4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Collections/Traits/EnumeratesValues.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit 001e4ec

Please sign in to comment.