Skip to content

Upgrade to Rector 2.0 with PHPStan 2 and PHPParser 5 #1582

Upgrade to Rector 2.0 with PHPStan 2 and PHPParser 5

Upgrade to Rector 2.0 with PHPStan 2 and PHPParser 5 #1582

Triggered via pull request November 21, 2024 08:43
Status Failure
Total duration 39s
Artifacts

code_analysis.yaml

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

Annotations

53 errors
8.3 Tests
Process completed with exit code 2.
8.2 Tests
Process completed with exit code 2.
8 Tests
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8.2 Check TYPO3 Rector configs
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8 Composer Validate
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8 Composer Validate
The operation was canceled.
8 Check TYPO3 Rector configs
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8 Check TYPO3 Rector configs
The operation was canceled.
7.4 Check TYPO3 Rector configs
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8.1 Composer Validate
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8.3 Check TYPO3 Rector configs
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8.3 Check TYPO3 Rector configs
The operation was canceled.
8 PHP Linter
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8 PHP Linter
The operation was canceled.
8.3 PHPStan
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8.3 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L40
Class PhpParser\Node\Stmt\Throw_ not found.
8.3 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L40
Method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::getNodeTypes() should return array<class-string<PhpParser\Node>> but returns array<int, string>.
8.3 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L46
PHPDoc tag @param for parameter $node with type PhpParser\Node\Expr\Throw_|PhpParser\Node\Stmt\Throw_ is not subtype of native type PhpParser\Node.
8.3 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L46
Parameter $node of method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::refactor() has invalid type PhpParser\Node\Stmt\Throw_.
8.3 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L48
Parameter #1 $node of method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::shouldSkip() expects PhpParser\Node\Expr\Throw_|PhpParser\Node\Stmt\Throw_, PhpParser\Node given.
8.3 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L61
Access to an undefined property PhpParser\Node::$expr.
8.3 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L69
Parameter $node of method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::shouldSkip() has invalid type PhpParser\Node\Stmt\Throw_.
8.3 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L71
Access to property $expr on an unknown class PhpParser\Node\Stmt\Throw_.
8.3 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L75
Access to property $expr on an unknown class PhpParser\Node\Stmt\Throw_.
8.3 PHPStan: rules/CodeQuality/General/ExtEmConfRector.php#L114
Strict comparison using === between non-empty-array<PhpParser\Node\ArrayItem> and null will always evaluate to false.
8.1 Tests
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
7.4 Tests
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
7.4 PHP Linter
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8 PHPStan
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8 PHPStan
A task was canceled.
8.2 PHPStan
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8.1 PHPStan
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
8.1 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L40
Class PhpParser\Node\Stmt\Throw_ not found.
8.1 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L40
Method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::getNodeTypes() should return array<class-string<PhpParser\Node>> but returns array<int, string>.
8.1 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L46
PHPDoc tag @param for parameter $node with type PhpParser\Node\Expr\Throw_|PhpParser\Node\Stmt\Throw_ is not subtype of native type PhpParser\Node.
8.1 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L46
Parameter $node of method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::refactor() has invalid type PhpParser\Node\Stmt\Throw_.
8.1 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L48
Parameter #1 $node of method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::shouldSkip() expects PhpParser\Node\Expr\Throw_|PhpParser\Node\Stmt\Throw_, PhpParser\Node given.
8.1 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L61
Access to an undefined property PhpParser\Node::$expr.
8.1 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L69
Parameter $node of method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::shouldSkip() has invalid type PhpParser\Node\Stmt\Throw_.
8.1 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L71
Access to property $expr on an unknown class PhpParser\Node\Stmt\Throw_.
8.1 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L75
Access to property $expr on an unknown class PhpParser\Node\Stmt\Throw_.
8.1 PHPStan: rules/CodeQuality/General/ExtEmConfRector.php#L114
Strict comparison using === between non-empty-array<PhpParser\Node\ArrayItem> and null will always evaluate to false.
7.4 PHPStan
The job was canceled because "_8_3_Tests_vendor_bin_php" failed.
7.4 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L40
Class PhpParser\Node\Stmt\Throw_ not found.
7.4 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L40
Method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::getNodeTypes() should return array<class-string<PhpParser\Node>> but returns array<int, string>.
7.4 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L46
PHPDoc tag @param for parameter $node with type PhpParser\Node\Expr\Throw_|PhpParser\Node\Stmt\Throw_ is not subtype of native type PhpParser\Node.
7.4 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L46
Parameter $node of method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::refactor() has invalid type PhpParser\Node\Stmt\Throw_.
7.4 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L48
Parameter #1 $node of method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::shouldSkip() expects PhpParser\Node\Expr\Throw_|PhpParser\Node\Stmt\Throw_, PhpParser\Node given.
7.4 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L61
Access to an undefined property PhpParser\Node::$expr.
7.4 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L69
Parameter $node of method Ssch\TYPO3Rector\CodeQuality\General\AddErrorCodeToExceptionRector::shouldSkip() has invalid type PhpParser\Node\Stmt\Throw_.
7.4 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L71
Access to property $expr on an unknown class PhpParser\Node\Stmt\Throw_.
7.4 PHPStan: rules/CodeQuality/General/AddErrorCodeToExceptionRector.php#L75
Access to property $expr on an unknown class PhpParser\Node\Stmt\Throw_.
7.4 PHPStan: rules/CodeQuality/General/ExtEmConfRector.php#L114
Strict comparison using === between non-empty-array<PhpParser\Node\ArrayItem> and null will always evaluate to false.