syntax (null -> NULL and == -> ===)

This commit is contained in:
juminet 2021-04-22 07:46:22 +00:00 committed by nobohan
parent e90ea31683
commit bc4e29141b

View File

@ -56,7 +56,7 @@ class Point implements JsonSerializable {
{
$a = json_decode($geojson);
//check if the geojson string is correct
if ($a == null or !isset($a->type) or !isset($a->coordinates)){
if (NULL === $a or !isset($a->type) or !isset($a->coordinates)){
throw PointException::badJsonString($geojson);
}