Skip to content

Commit 7eba42a

Browse files
authored
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 grimzy#182
1 parent 2ca9f2f commit 7eba42a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Types/Point.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public static function fromJson($geoJson)
9292
*
9393
* @return \GeoJson\Geometry\Point
9494
*/
95+
#[\ReturnTypeWillChange]
9596
public function jsonSerialize()
9697
{
9798
return new GeoJsonPoint([$this->getLng(), $this->getLat()]);

0 commit comments

Comments
 (0)