Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Add array return type to jsonSerialize method for PHP 8.3+ comp… #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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