psalm icon indicating copy to clipboard operation
psalm copied to clipboard

Update humbug/box

Open weirdan opened this issue 2 years ago • 4 comments

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

weirdan avatar Jan 05 '22 22:01 weirdan

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

psalm-github-bot[bot] avatar Jan 05 '22 22:01 psalm-github-bot[bot]

the same issue, very annoying

alies-dev avatar Mar 16 '22 19:03 alies-dev

same issue here

albertborsos avatar Jul 05 '22 15:07 albertborsos

Same here, the issue is still annoying.

mikemix avatar Aug 23 '22 19:08 mikemix