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

Update humbug/box #7314

Closed
weirdan opened this issue Jan 5, 2022 · 5 comments · Fixed by #8770
Closed

Update humbug/box #7314

weirdan opened this issue Jan 5, 2022 · 5 comments · Fixed by #8770
Labels
Milestone

Comments

@weirdan
Copy link
Collaborator

weirdan commented Jan 5, 2022

Current box version produces deprecation warnings when the resulting phar is run on 8.1:

$ php vendor/psalm/phar/psalm.phar
PHP Deprecated:  Return type of HumbugBox383\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:///home/weirdan/src/psalm/issues/phar/vendor/psalm/phar/psalm.phar/.box/src/RequirementCollection.php on line 15
Deprecated: Return type of HumbugBox383\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:///home/weirdan/src/psalm/issues/phar/vendor/psalm/phar/psalm.phar/.box/src/RequirementCollection.php on line 15
PHP Deprecated:  Return type of HumbugBox383\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:///home/weirdan/src/psalm/issues/phar/vendor/psalm/phar/psalm.phar/.box/src/RequirementCollection.php on line 19
Deprecated: Return type of HumbugBox383\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:///home/weirdan/src/psalm/issues/phar/vendor/psalm/phar/psalm.phar/.box/src/RequirementCollection.php on line 19
Target PHP version: 8.1 (inferred from current PHP version)
Scanning files...
Analyzing files...


------------------------------
                              
       No errors found!       
                              
------------------------------

Checks took 0.21 seconds and used 61.212MB of memory
Psalm was unable to infer types in the codebase
@psalm-github-bot
Copy link

Hey @weirdan, can you reproduce the issue on https://psalm.dev ?

@weirdan weirdan added the bug label Jan 5, 2022
@weirdan weirdan added this to the PHP 8.1 milestone Jan 5, 2022
@alies-dev
Copy link
Contributor

the same issue, very annoying

@albertborsos
Copy link

same issue here

@mikemix
Copy link

mikemix commented Aug 23, 2022

Same here, the issue is still annoying.

@theodorejb
Copy link
Contributor

I'm also getting this error when I try to use the dev-master Psalm build with GitHub actions.

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.

5 participants