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 eee6f5f commit 15d9a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Traits/EnumeratesValues.php
Original file line number Diff line number Diff line change
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 15d9a85

Please sign in to comment.