Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Deprecation notices on v3.13.0 and PHP 8.1.14 #48

Open
crmpicco opened this issue Feb 1, 2023 · 5 comments
Open

Deprecation notices on v3.13.0 and PHP 8.1.14 #48

crmpicco opened this issue Feb 1, 2023 · 5 comments
Assignees

Comments

@crmpicco
Copy link

crmpicco commented Feb 1, 2023

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.

@nicozarris
Copy link

Any updates on this? I get the same error.

@cb-khushbubibay cb-khushbubibay self-assigned this May 20, 2023
@cb-khushbubibay
Copy link
Contributor

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.

@crmpicco
Copy link
Author

Hi @cb-khushbubibay , I am on v3.13.0 and PHP 8.1.14.

@crmpicco
Copy link
Author

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?

@drekinov
Copy link

I think that is not related to specific php (>= 8.0) or library version. I guess it is more visible in symfony because of profiler than other projects.
But issue is still going even with php 8.4 and everything other latest too.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants