poggit/libasynql

Server crashes on PHP 8.1 due to not declaring return type of JsonSerializable::jsonSerialize()

alvin0319 opened this issue · 1 comments

Describe the bug
A clear and concise description of what the bug is.

Fatal error: During inheritance of JsonSerializable: Uncaught ErrorException: Return type of poggit\libasynql\generic\GenericStatementImpl::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixe
d, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\Users\minjae\Desktop\Projects\MCBE\MCBE\PocketMine-MP-Projects\CrushDev\virions\libasynql\src\poggit\libasynql\generic\GenericStatementImpl.php:246

Sample code
N/A
Expected behavior
The server should not crash

Environment
OS: Windows
PocketMine version: 4.10.0
PHP: 8.1

SOF3 commented

please create a pull request.