Skip to content

Conversation

marvelmikel
Copy link

update array "### Fix: Add array return type to jsonSerialize method

This pull request addresses a deprecation notice in PHP 8.1 and later versions regarding the jsonSerialize method in the Grimzy\LaravelMysqlSpatial\Types\Point class. The method now includes the array return type to ensure compatibility with the JsonSerializable interface.

Changes:

  • Updated jsonSerialize method in Point.php to include array return type.

Why:
This change is necessary to prevent deprecation notices and ensure compatibility with PHP 8.1 and newer versions.

Testing:
Tested locally with PHP 8.3 to ensure no deprecation notices are generated and the functionality remains intact.
"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant