Skip to content

Commit 698711c

Browse files
committed
Fix CS
1 parent bc209f7 commit 698711c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Query/Builder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
use function is_callable;
5050
use function is_float;
5151
use function is_int;
52-
use function is_null;
5352
use function is_string;
5453
use function md5;
5554
use function preg_match;
@@ -987,7 +986,7 @@ public function where($column, $operator = null, $value = null, $boolean = 'and'
987986
throw new ArgumentCountError(sprintf('Too few arguments to function %s(%s), 1 passed and at least 2 expected when the 1st is not an array or a callable', __METHOD__, var_export($column, true)));
988987
}
989988

990-
if (is_float($column) || is_bool($column) || is_null($column)) {
989+
if (is_float($column) || is_bool($column) || $column === null) {
991990
throw new InvalidArgumentException(sprintf('First argument of %s must be a field path as "string". Got "%s"', __METHOD__, get_debug_type($column)));
992991
}
993992

0 commit comments

Comments
 (0)