diff --git a/src/QueryGrammar.php b/src/QueryGrammar.php index 8651e4e..256a55e 100644 --- a/src/QueryGrammar.php +++ b/src/QueryGrammar.php @@ -165,7 +165,7 @@ protected function compileWhereBasic(Builder $builder, array $where): array ], ]; - $where['not'] = !$value; + $where['not'] = ($where['type'] ?? null) === 'NotNull' ? false : !$value; } elseif (in_array($where['operator'], array_keys($operatorsMap))) { $operator = $operatorsMap[$where['operator']]; $query = [