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

Deprecations with PHP 8.1 #763

Closed
fbiesse opened this issue Dec 20, 2021 · 1 comment · Fixed by #851
Closed

Deprecations with PHP 8.1 #763

fbiesse opened this issue Dec 20, 2021 · 1 comment · Fixed by #851

Comments

@fbiesse
Copy link

fbiesse commented Dec 20, 2021

When I launch deptrac with PHP8.1, I get the following errors ;

/usr/local/bin/php deptrac.phar analyze --formatter=table depfile.yaml
[20-Dec-2021 10:35:39 Europe/Paris] PHP Deprecated:  Return type of HumbugBox3130\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:///var/www/html/deptrac.phar/.box/src/RequirementCollection.php on line 12

Deprecated: Return type of HumbugBox3130\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:///var/www/html/deptrac.phar/.box/src/RequirementCollection.php on line 12
[20-Dec-2021 10:35:39 Europe/Paris] PHP Deprecated:  Return type of HumbugBox3130\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:///var/www/html/deptrac.phar/.box/src/RequirementCollection.php on line 16

Deprecated: Return type of HumbugBox3130\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:///var/www/html/deptrac.phar/.box/src/RequirementCollection.php on line 16
[20-Dec-2021 10:35:39 Europe/Paris] PHP Deprecated:  Return type of HumbugBox3130\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:///var/www/html/deptrac.phar/.box/src/RequirementCollection.php on line 12

Deprecated: Return type of HumbugBox3130\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:///var/www/html/deptrac.phar/.box/src/RequirementCollection.php on line 12
[20-Dec-2021 10:35:39 Europe/Paris] PHP Deprecated:  Return type of HumbugBox3130\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:///var/www/html/deptrac.phar/.box/src/RequirementCollection.php on line 16

Deprecated: Return type of HumbugBox3130\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:///var/www/html/deptrac.phar/.box/src/RequirementCollection.php on line 16

It would be great to integrate these changes in the next release.

Thank you.

@patrickkusebauch
Copy link
Collaborator

patrickkusebauch commented Dec 20, 2021

This is a problem with the way we build PHAR: box-project/box#562. The PR to fix it: box-project/box#578

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

Successfully merging a pull request may close this issue.

2 participants