PHP Deprecated: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count()
kenjis opened this issue · 2 comments
kenjis commented
$ 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 commented
Try running composer update
to make sure your vendor folder has uptodate dependencies.
stof commented
I confirm that using an uptodate Composer 1.x in the vendor folder stops returning that error.