appwrite / sdk-for-php

[READ-ONLY] Official Appwrite PHP SDK 🐘
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
135 stars 21 forks source link

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

Open us3r001 opened 3 weeks ago

us3r001 commented 3 weeks ago

👟 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?

🏢 Have you read the Code of Conduct?

us3r001 commented 3 weeks ago

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