Skip to content

Make Iterator::key() and ::current() nullable #19752

Make Iterator::key() and ::current() nullable

Make Iterator::key() and ::current() nullable #19752

Triggered via pull request May 13, 2025 19:26
Status Failure
Total duration 3m 37s
Artifacts 3

phar.yml

on: pull_request
integration-tests  /  Check PHAR checksum
4s
integration-tests / Check PHAR checksum
extension-tests  /  Check PHAR checksum
4s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
5s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Matrix: integration-tests / integration-run-phpstan
Matrix: integration-tests / integration-tests
Matrix: extension-tests / Extension Tests
Matrix: other-tests / Other Tests
integration-tests  /  Integration - Update baselines
integration-tests / Integration - Update baselines
Fit to window
Zoom out
Zoom in

Annotations

90 errors
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/react-promise composer install ../../phpstan analyse -l 8...: phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/baseline ../../phpstan analyse -l 8 src/ ../../phpstan an...: phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/excludePaths ../../phpstan analyse ): phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/dup-classes ../../phpstan )
Process completed with exit code 1.
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/dup-classes ../../phpstan ): phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/phpstan-issue-4953 composer install ../../phpstan ): phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
other-tests / Other Tests (ubuntu-latest, 8.0, cd e2e/rector-autoload composer install ../../phpstan ): src/ImportPhpUnitFunctionsRector.php#L22
Access to internal constant Rector\NodeTypeResolver\Node\AttributeKey::PARENT_NODE from outside its root namespace Rector.
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/different-php-parser2 composer install ../../phpstan anal...: phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/restricted-php-ini composer install php -d open_basedir="...: phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/different-php-parser composer install --ignore-platform-r...: phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
other-tests / Other Tests (7.4, ubuntu-latest, cd e2e/autoloader-issue-stream-eof composer install ../../phpsta...: phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/rector-autoload composer install ../../phpstan ): phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/rector-autoload composer install ../../phpstan ): src/ImportPhpUnitFunctionsRector.php#L22
Access to internal constant Rector\NodeTypeResolver\Node\AttributeKey::PARENT_NODE from outside its root namespace Rector.
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/bug6933 composer install ../../phpstan analyse -l 8 Module ): phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
extension-tests / Extension Tests (8.3, phpstan-symfony)
Process completed with exit code 2.
extension-tests / Extension Tests (8.3, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L55
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.3, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L54
Cannot access property $tag on SimpleXMLElement|null.
extension-tests / Extension Tests (8.3, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L48
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.3, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L88
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.3, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L86
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.3, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L83
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.3, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L53
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.3, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L49
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (7.4, phpstan-symfony)
Process completed with exit code 2.
extension-tests / Extension Tests (7.4, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L55
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (7.4, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L54
Cannot access property $tag on SimpleXMLElement|null.
extension-tests / Extension Tests (7.4, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L48
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (7.4, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L88
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (7.4, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L86
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (7.4, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L83
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (7.4, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L53
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (7.4, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L49
Cannot call method attributes() on SimpleXMLElement|null.
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e git clone https://github.com/nikic/PHP-Parser.git cd PHP-...: phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/autoloader-require ../../phpstan analyse ../../phpstan an...: phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
integration-tests / Integration - shipmonk-rnd/dead-code-detector
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Provider/SymfonyUsageProvider.php#L412
Cannot call method attributes() on SimpleXMLElement|null.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Provider/SymfonyUsageProvider.php#L386
Cannot call method attributes() on SimpleXMLElement|null.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Provider/SymfonyUsageProvider.php#L374
Cannot call method attributes() on SimpleXMLElement|null.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Provider/SymfonyUsageProvider.php#L362
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.4, phpstan-symfony)
Process completed with exit code 2.
extension-tests / Extension Tests (8.4, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L55
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.4, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L54
Cannot access property $tag on SimpleXMLElement|null.
extension-tests / Extension Tests (8.4, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L48
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.4, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L88
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.4, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L86
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.4, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L83
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.4, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L53
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.4, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L49
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.2, phpstan-symfony)
Process completed with exit code 2.
extension-tests / Extension Tests (8.2, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L55
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.2, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L54
Cannot access property $tag on SimpleXMLElement|null.
extension-tests / Extension Tests (8.2, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L48
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.2, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L88
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.2, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L86
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.2, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L83
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.2, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L53
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.2, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L49
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.0, phpstan-symfony)
Process completed with exit code 2.
extension-tests / Extension Tests (8.0, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L55
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.0, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L54
Cannot access property $tag on SimpleXMLElement|null.
extension-tests / Extension Tests (8.0, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L48
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.0, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L88
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.0, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L86
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.0, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L83
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.0, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L53
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.0, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L49
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.1, phpstan-symfony)
Process completed with exit code 2.
extension-tests / Extension Tests (8.1, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L55
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.1, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L54
Cannot access property $tag on SimpleXMLElement|null.
extension-tests / Extension Tests (8.1, phpstan-symfony): src/Symfony/XmlServiceMapFactory.php#L48
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.1, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L88
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.1, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L86
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.1, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L83
Cannot call method attributes() on SimpleXMLElement|null.
extension-tests / Extension Tests (8.1, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L53
Parameter #1 $def of method PHPStan\Symfony\XmlParameterMapFactory::getNodeValue() expects SimpleXMLElement, SimpleXMLElement|null given.
extension-tests / Extension Tests (8.1, phpstan-symfony): src/Symfony/XmlParameterMapFactory.php#L49
Cannot call method attributes() on SimpleXMLElement|null.
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e/excludePaths2 ../../phpstan analyse ): phar:///home/runner/work/phpstan-src/phpstan-src/phpstan.phar/stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().

Artifacts

Produced during runtime
Name Size Digest
baselines-shipmonk-dead-code-detector-baseline.neon Expired
362 Bytes
sha256:fb1012e52ee3b0adc2843fa5fa236b8dca6e2dcf41b384c81c5c2bb295e54562
phar-file Expired
3.53 MB
sha256:3cbaf25b4d053c015305bfe43c872fc64300135c6d67cae7b593fee2c855052f
phar-file-checksum Expired
3.53 MB
sha256:5a88ef1a63eb520692c8c1d019c5682b040b4069c08587f812097fe96d21d277