mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
syntax (null -> NULL and == -> ===)
This commit is contained in:
parent
e90ea31683
commit
bc4e29141b
@ -56,7 +56,7 @@ class Point implements JsonSerializable {
|
|||||||
{
|
{
|
||||||
$a = json_decode($geojson);
|
$a = json_decode($geojson);
|
||||||
//check if the geojson string is correct
|
//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);
|
throw PointException::badJsonString($geojson);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user