mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
DX: apply rector rulesets up to PHP 73
This commit is contained in:
@@ -41,7 +41,7 @@ class Point implements JsonSerializable
|
||||
|
||||
public static function fromGeoJson(string $geojson): self
|
||||
{
|
||||
$a = json_decode($geojson);
|
||||
$a = json_decode($geojson, null, 512, JSON_THROW_ON_ERROR);
|
||||
|
||||
if (null === $a) {
|
||||
throw PointException::badJsonString($geojson);
|
||||
@@ -96,7 +96,7 @@ class Point implements JsonSerializable
|
||||
{
|
||||
$array = $this->toArrayGeoJson();
|
||||
|
||||
return json_encode($array);
|
||||
return json_encode($array, JSON_THROW_ON_ERROR);
|
||||
}
|
||||
|
||||
public function toWKT(): string
|
||||
|
Reference in New Issue
Block a user