Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
marvelmikel wants to merge1 commit intogrimzy:master
base:master
Choose a base branch
Loading
frommarvelmikel:fix-jsonserialize-return-type

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 thejsonSerialize method in theGrimzy\LaravelMysqlSpatial\Types\Point class. The method now includes thearray return type to ensure compatibility with theJsonSerializable interface.

Changes:

  • UpdatedjsonSerialize method inPoint.php to includearray 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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@marvelmikel

[8]ページ先頭

©2009-2025 Movatter.jp