Skip to content

Allow Rector 2.0

Allow Rector 2.0 #456

Triggered via pull request December 12, 2024 10:14
@samsonasiksamsonasik
opened #145
v2
Status Failure
Total duration 2m 39s
Artifacts

code_analysis.yaml

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

Annotations

10 errors and 6 warnings
PHPStan: src/Rules/AbstractSymplifyRule.php#L32
Method Symplify\PHPStanRules\Rules\AbstractSymplifyRule::processNode() should return list<PHPStan\Rules\IdentifierRuleError> but returns array<PHPStan\Rules\RuleError|string>.
PHPStan: src/Rules/AnnotateRegexClassConstWithRegexLinkRule.php#L70
Method Symplify\PHPStanRules\Rules\AnnotateRegexClassConstWithRegexLinkRule::processNode() should return list<PHPStan\Rules\IdentifierRuleError> but returns array{PHPStan\Rules\RuleError}.
PHPStan: src/Rules/CheckRequiredInterfaceInContractNamespaceRule.php#L53
Method Symplify\PHPStanRules\Rules\CheckRequiredInterfaceInContractNamespaceRule::processNode() should return list<PHPStan\Rules\IdentifierRuleError> but returns array{PHPStan\Rules\RuleError}.
PHPStan: src/Rules/ClassNameRespectsParentSuffixRule.php#L92
Method Symplify\PHPStanRules\Rules\ClassNameRespectsParentSuffixRule::processNode() should return list<PHPStan\Rules\IdentifierRuleError> but returns list<PHPStan\Rules\RuleError>.
PHPStan: src/Rules/Complexity/ForbiddenArrayMethodCallRule.php#L45
Doing instanceof PHPStan\Type\TypeWithClassName is error-prone and deprecated. Use Type::getObjectClassNames() or Type::getObjectClassReflections() instead.
PHPStan: src/Rules/Complexity/ForbiddenArrayMethodCallRule.php#L59
Method Symplify\PHPStanRules\Rules\Complexity\ForbiddenArrayMethodCallRule::processNode() should return list<PHPStan\Rules\IdentifierRuleError> but returns array{PHPStan\Rules\RuleError}.
PHPStan: src/Rules/Complexity/ForbiddenArrayMethodCallRule.php#L82
Instanceof between PhpParser\Node\ArrayItem and PhpParser\Node\ArrayItem will always evaluate to true.
PHPStan: src/Rules/Complexity/ForbiddenArrayMethodCallRule.php#L87
Doing instanceof PHPStan\Type\TypeWithClassName is error-prone and deprecated. Use Type::getObjectClassNames() or Type::getObjectClassReflections() instead.
PHPStan: src/Rules/Complexity/ForbiddenArrayMethodCallRule.php#L97
Instanceof between PhpParser\Node\ArrayItem and PhpParser\Node\ArrayItem will always evaluate to true.
PHPStan: src/Rules/Complexity/ForbiddenArrayMethodCallRule.php#L104
Doing instanceof PHPStan\Type\Constant\ConstantStringType is error-prone and deprecated. Use Type::getConstantStrings() instead.
PHPStan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Rector
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Coding Standard
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Composer Validate
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check Active Classes
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636