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

Multiple deprecations in php 8.1 #885

Closed
beeyev opened this issue Feb 3, 2022 · 4 comments · Fixed by #905
Closed

Multiple deprecations in php 8.1 #885

beeyev opened this issue Feb 3, 2022 · 4 comments · Fixed by #905
Assignees
Labels

Comments

@beeyev
Copy link

beeyev commented Feb 3, 2022

Hello, first of all, thanks for the great tool, I have been using it for quite a long time.
But it seems that the library needs to be updated in order to work with PHP 8.1
I get these errors:

Deprecated: Return type of HumbugBox391\KevinGH\RequirementChecker\RequirementCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer-normalize/.box/src/RequirementCollection.php on line 15

Deprecated: Return type of HumbugBox391\KevinGH\RequirementChecker\RequirementCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer-normalize/.box/src/RequirementCollection.php on line 19

Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer-normalize/vendor/symfony/console/Helper/HelperSet.php on line 104
Deprecation Notice: 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 phar:///usr/local/bin/composer-normalize/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php:327
Deprecation Notice: 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 phar:///usr/local/bin/composer-normalize/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php:327
Deprecation Notice: 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 phar:///usr/local/bin/composer-normalize/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php:327

Could you please fix that?

@localheinz localheinz self-assigned this Feb 3, 2022
@localheinz localheinz added the bug label Feb 3, 2022
@localheinz
Copy link
Member

@beeyev

Thank you for the report, I will take a 👀!

@jrmajor
Copy link

jrmajor commented Mar 15, 2022

Hey @localheinz, have you had time to take a look at this? Please let me know should you need some help :)

@localheinz
Copy link
Member

@beeyev @jrmajor

Can you provide steps that show how to reproduce the issue, please?

@localheinz
Copy link
Member

@beeyev @jrmajor

Ha, never mind, running

composer-normalize.phar

yields

PHP Deprecated:  Return type of HumbugBox391\KevinGH\RequirementChecker\RequirementCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/am/Sites/ergebnis/composer-normalize/.build/phar/composer-normalize.phar/.box/src/RequirementCollection.php on line 15

Deprecated: Return type of HumbugBox391\KevinGH\RequirementChecker\RequirementCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/am/Sites/ergebnis/composer-normalize/.build/phar/composer-normalize.phar/.box/src/RequirementCollection.php on line 15
PHP Deprecated:  Return type of HumbugBox391\KevinGH\RequirementChecker\RequirementCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/am/Sites/ergebnis/composer-normalize/.build/phar/composer-normalize.phar/.box/src/RequirementCollection.php on line 19

Deprecated: Return type of HumbugBox391\KevinGH\RequirementChecker\RequirementCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/am/Sites/ergebnis/composer-normalize/.build/phar/composer-normalize.phar/.box/src/RequirementCollection.php on line 19
PHP Deprecated:  Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/am/Sites/ergebnis/composer-normalize/.build/phar/composer-normalize.phar/vendor/symfony/console/Helper/HelperSet.php on line 104

Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/am/Sites/ergebnis/composer-normalize/.build/phar/composer-normalize.phar/vendor/symfony/console/Helper/HelperSet.php on line 104
Deprecation Notice: 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 phar:///Users/am/Sites/ergebnis/composer-normalize/.build/phar/composer-normalize.phar/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php:327
Deprecation Notice: 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 phar:///Users/am/Sites/ergebnis/composer-normalize/.build/phar/composer-normalize.phar/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php:327
Deprecation Notice: 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 phar:///Users/am/Sites/ergebnis/composer-normalize/.build/phar/composer-normalize.phar/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php:327
Deprecation Notice: Return type of Composer\Repository\CompositeRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/am/Sites/ergebnis/composer-normalize/.build/phar/composer-normalize.phar/vendor/composer/composer/src/Composer/Repository/CompositeRepository.php:182
Running ergebnis/composer-normalize 2.24.0@3518925 by Andreas Möller and contributors #StandWithUkraine.

./composer.json is already normalized.

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

Successfully merging a pull request may close this issue.

3 participants