psalm
psalm copied to clipboard
Update humbug/box
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
Hey @weirdan, can you reproduce the issue on https://psalm.dev ?
the same issue, very annoying
same issue here
Same here, the issue is still annoying.
I'm also getting this error when I try to use the dev-master Psalm build with GitHub actions.