Skip to content

[code-quality] Add RepeatedOrEqualToInArrayRector #37776

[code-quality] Add RepeatedOrEqualToInArrayRector

[code-quality] Add RepeatedOrEqualToInArrayRector #37776

Triggered via pull request October 2, 2025 20:46
Status Failure
Total duration 36s
Artifacts

packages_tests.yaml

on: pull_request
Matrix: packages_tests
Fit to window
Zoom out
Zoom in

Annotations

7 errors
packages_tests (rectorphp/rector-downgrade-php, PHPStan, vendor/bin/phpstan)
Process completed with exit code 1.
packages_tests (rectorphp/rector-downgrade-php, PHPStan, vendor/bin/phpstan): rules/DowngradePhp82/Rector/FuncCall/DowngradeIteratorCountToArrayRector.php#L72
Method Rector\DowngradePhp82\Rector\FuncCall\DowngradeIteratorCountToArrayRector::refactor() never returns 4 so it can be removed from the return type.
packages_tests (rectorphp/rector-downgrade-php, PHPStan, vendor/bin/phpstan): rules/DowngradePhp82/Rector/FuncCall/DowngradeIteratorCountToArrayRector.php#L72
Method Rector\DowngradePhp82\Rector\FuncCall\DowngradeIteratorCountToArrayRector::refactor() never returns 3 so it can be removed from the return type.
packages_tests (rectorphp/rector-downgrade-php, PHPStan, vendor/bin/phpstan): rules/DowngradePhp82/Rector/FuncCall/DowngradeIteratorCountToArrayRector.php#L72
Method Rector\DowngradePhp82\Rector\FuncCall\DowngradeIteratorCountToArrayRector::refactor() never returns 2 so it can be removed from the return type.
packages_tests (rectorphp/rector-downgrade-php, PHPStan, vendor/bin/phpstan): rules/DowngradePhp81/Rector/FuncCall/DowngradeHashAlgorithmXxHashRector.php#L93
Method Rector\DowngradePhp81\Rector\FuncCall\DowngradeHashAlgorithmXxHashRector::refactor() never returns 4 so it can be removed from the return type.
packages_tests (rectorphp/rector-downgrade-php, PHPStan, vendor/bin/phpstan): rules/DowngradePhp81/Rector/FuncCall/DowngradeHashAlgorithmXxHashRector.php#L93
Method Rector\DowngradePhp81\Rector\FuncCall\DowngradeHashAlgorithmXxHashRector::refactor() never returns 3 so it can be removed from the return type.
packages_tests (rectorphp/rector-downgrade-php, PHPStan, vendor/bin/phpstan): rules/DowngradePhp81/Rector/FuncCall/DowngradeHashAlgorithmXxHashRector.php#L93
Method Rector\DowngradePhp81\Rector\FuncCall\DowngradeHashAlgorithmXxHashRector::refactor() never returns 2 so it can be removed from the return type.