From bc4e29141b1535bdf631bb9d7a6f2e04504b51f1 Mon Sep 17 00:00:00 2001 From: juminet Date: Thu, 22 Apr 2021 07:46:22 +0000 Subject: [PATCH] syntax (null -> NULL and == -> ===) --- src/Bundle/ChillMainBundle/Doctrine/Model/Point.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php b/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php index d987637ce..67cf434c0 100644 --- a/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php +++ b/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php @@ -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); }