php 8.1 JsonSerializable::jsonSerialize() return type deprecation warning #2
Replies: 6 comments 9 replies
-
Thanks for the report! I moved the discussion to the appropriate repo. |
Beta Was this translation helpful? Give feedback.
-
I have released an update that should fix the warning. It should be gone after a |
Beta Was this translation helpful? Give feedback.
-
hmm weird... i just saw that the issue is related to php-settings-container however the package i'm using is php-qrcode
|
Beta Was this translation helpful? Give feedback.
-
ahhh, makes sence :) confirm the upgrade however (changed line to 157)
|
Beta Was this translation helpful? Give feedback.
-
I still do get the warning (deprecated) - and I just installed the newest version from composer.
SettingsContainerAbstract.php:168 |
Beta Was this translation helpful? Give feedback.
-
I have this error:
How I can fixed this? |
Beta Was this translation helpful? Give feedback.
-
for future integration with php8.1
PHP Deprecated: Return type of chillerlan\Settings\SettingsContainerAbstract::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/app/vendor/chillerlan/php-settings-container/src/SettingsContainerAbstract.php on line 168
however qrcode is showing and working :)
Beta Was this translation helpful? Give feedback.
All reactions