Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

PHP Deprecated: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count() #666

Closed
kenjis opened this issue Dec 23, 2022 · 2 comments

Comments

@kenjis
Copy link
Contributor

kenjis commented Dec 23, 2022

$ php -d memory_limit=-1 validator.php
    0/1299 [>---------------------------]   0%PHP Deprecated:  Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /.../security-advisories/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php on line 206
@stof
Copy link
Member

stof commented Dec 23, 2022

Try running composer update to make sure your vendor folder has uptodate dependencies.

@stof
Copy link
Member

stof commented Dec 23, 2022

I confirm that using an uptodate Composer 1.x in the vendor folder stops returning that error.

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

No branches or pull requests

2 participants