Deprecation notices on v3.13.0 and PHP 8.1.14
crmpicco opened this issue · comments
Following on from #40, I am experiencing a whole bunch of deprecation notices in my application originating from the chargebee/chargebee-php
project.
User Deprecated: Method "Countable::count()" might add "int" as a native return type declaration in the future. Do the same in implementation "ChargeBee\ChargeBee\ListResult" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "ArrayAccess::offsetSet()" might add "void" as a native return type declaration in the future. Do the same in implementation "ChargeBee\ChargeBee\ListResult" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "ArrayAccess::offsetUnset()" might add "void" as a native return type declaration in the future. Do the same in implementation "ChargeBee\ChargeBee\ListResult" now to avoid errors or add an explicit @return annotation to suppress this message.
I am on v3.13.0 and PHP 8.1.14.
Any updates on this? I get the same error.
Hi @nicozarris @crmpicco
Could you help us with below information :
1 - What version of php.
2- What is version of chargebee-php.
I tried to reproduce this issue in my local with the php version PHP 8.1.19 and chargebee-php v3.13.0 version. But this deprecation issue is not reproducible.
Hi @cb-khushbubibay , I am on v3.13.0 and PHP 8.1.14.
I have now upgraded to PHP 8.2 and I am on version v.3.26.0 and i'm still hitting this issue. This is an example of the output:
User Deprecated: Method "Countable::count()" might add "int" as a native return type declaration in the future. Do the same in implementation "ChargeBee\ChargeBee\ListResult" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \"Countable::count()\" might add \"int\" as a native return type declaration in the future. Do the same in implementation \"ChargeBee\\ChargeBee\\ListResult\" now to avoid errors or add an explicit @return annotation to suppress this message. at /var/www/crmpicco/vendor/symfony/error-handler/DebugClassLoader.php:331)"}
@nicozarris Are you also still seeing these notices?