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

Type error #210

Open
pokhiii opened this issue Oct 7, 2023 · 1 comment
Open

Type error #210

pokhiii opened this issue Oct 7, 2023 · 1 comment

Comments

@pokhiii
Copy link

pokhiii commented Oct 7, 2023

Return value of Grimzy\LaravelMysqlSpatial\Types\Point::jsonSerialize() must be an instance of Grimzy\LaravelMysqlSpatial\Types\mixed, instance of GeoJson\Geometry\Point returned {"userId":57666,"exception":"[object] (TypeError(code: 0): Return value of Grimzy\LaravelMysqlSpatial\Types\Point::jsonSerialize() must be an instance of Grimzy\LaravelMysqlSpatial\Types\mixed, instance of GeoJson\Geometry\Point returned at /var/www/html/my-app/vendor/grimzy/laravel-mysql-spatial/src/Types/Point.php:95)

@James-buzz
Copy link

James-buzz commented Mar 19, 2024

PHP 8.0 updated the default for error_reporting: https://php.watch/versions/8.0/error-display-E_ALL
As a short term fix you can update error_reporting=E_ALL to error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT in php.ini. Research the implication though.

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

No branches or pull requests

2 participants