sdk-for-php icon indicating copy to clipboard operation
sdk-for-php copied to clipboard

🐛 Bug Report: PHP 8.3 Return type of Query::jsonSerialize() must be compatible with JsonSerializable::jsonSerialize(): mixed

Open us3r001 opened this issue 1 year ago • 1 comments
trafficstars

👟 Reproduction steps

Using Querys with php8.3

👍 Expected behavior

Should not trigger a fatal error.

👎 Actual Behavior

Fatal error: During inheritance of JsonSerializable: Uncaught ErrorException: Return type of Appwrite\Query::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/appwrite/appwrite/src/Appwrite/Query.php:29

🎲 Appwrite version

Version 0.10.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • [x] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

us3r001 avatar Jun 02 '24 09:06 us3r001

https://github.com/appwrite/sdk-generator/pull/869

us3r001 avatar Jun 02 '24 10:06 us3r001