'null === ...' can be used.

This commit is contained in:
Yuriy Pikhtarev 2017-05-05 00:59:05 +03:00
commit ec96f6567b
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
8 changed files with 47 additions and 47 deletions

View file

@ -412,7 +412,7 @@ class sql_db
return ($v) ? '1' : '0';
case is_float($v):
return "'$v'";
case is_null($v):
case null === $v:
return 'NULL';
}
// if $v has unsuitable type