1 WARN
: File
"null_check_partial.php", line 16, characters 8-15:
2 This is a sketchy null check.
3 It detects nulls
, but it will also detect many other falsy
values, including `false`
, `
0`
, `
0.0`
, `
""`, `"0"`, empty Containers, and more.
4 If you want to test
for them
, please
consider doing so explicitly.
5 If you only meant to test
for `null`
, use `$x is nonnull` instead
(Warn
[12003])