Closed taylorren closed 2 years ago
At first, I thought it could be a bug, but Slim does not do any JSON encoding etc.
I assume this is a PHP 8.1 deprecation in your code:
See this: https://3v4l.org/Fon9f#v8.1.2 vs. this: https://3v4l.org/gqeus#v8.1.2
Please try to add : mixed
as return type in file ActionPayload.php on line 67.
This is a Slim-Skeleton
issue that's been fixed.
I have been using Slim PHP framework to provide my API service (https://api.rsywx.com).
Recently, I updated my PHP to 8.1 and when I visited the site, it gives the following error:
I have not changed anything in my source code, so I guess the problem raises from Slim framework itself.
Any hints to solve this issue?