From 7eba42a6da43da1491248d4beaedcff2c25a37ce Mon Sep 17 00:00:00 2001 From: Fredrik Date: Tue, 8 Nov 2022 15:43:48 +0100 Subject: [PATCH] Update Point.php Right now this lib throws: > Return type of Grimzy\LaravelMysqlSpatial\Types\Point::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in xxx/vendor/grimzy/laravel-mysql-spatial/src/Types/Point.php on line 95 Fixes #182 --- src/Types/Point.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Types/Point.php b/src/Types/Point.php index d424ec5e..03efc998 100644 --- a/src/Types/Point.php +++ b/src/Types/Point.php @@ -92,6 +92,7 @@ public static function fromJson($geoJson) * * @return \GeoJson\Geometry\Point */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return new GeoJsonPoint([$this->getLng(), $this->getLat()]);