We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4846cc commit 762b917Copy full SHA for 762b917
src/Illuminate/Database/Query/Builder.php
@@ -846,8 +846,8 @@ protected function invalidOperatorAndValue($operator, $value)
846
*/
847
protected function invalidOperator($operator)
848
{
849
- return ! in_array(strtolower($operator), $this->operators, true) &&
850
- ! in_array(strtolower($operator), $this->grammar->getOperators(), true);
+ return ! is_string($operator) || (! in_array(strtolower($operator), $this->operators, true) &&
+ ! in_array(strtolower($operator), $this->grammar->getOperators(), true));
851
}
852
853
/**
0 commit comments