Illuminate\Database\Query\Builder::invalidOperatorAndValue PHP Method

invalidOperatorAndValue() protected method

Determine if the given operator and value combination is legal.
protected invalidOperatorAndValue ( string $operator, mixed $value ) : boolean
$operator string
$value mixed
return boolean
    protected function invalidOperatorAndValue($operator, $value)
    {
        $isOperator = in_array($operator, $this->operators);
        return is_null($value) && $isOperator && !in_array($operator, ['=', '<>', '!=']);
    }