Skip to content

Support PHPStan 2.0 #454

Support PHPStan 2.0

Support PHPStan 2.0 #454

Re-run triggered November 27, 2024 06:02
Status Failure
Total duration 2m 33s
Artifacts

code_analysis.yaml

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

Annotations

11 errors
Rector
Process completed with exit code 2.
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#L87
Doing instanceof PHPStan\Type\TypeWithClassName is error-prone and deprecated. Use Type::getObjectClassNames() or Type::getObjectClassReflections() instead.
PHPStan: src/Rules/Complexity/ForbiddenArrayMethodCallRule.php#L104
Doing instanceof PHPStan\Type\Constant\ConstantStringType is error-prone and deprecated. Use Type::getConstantStrings() instead.
PHPStan: src/Rules/Domain/RequireAttributeNamespaceRule.php#L78
Method Symplify\PHPStanRules\Rules\Domain\RequireAttributeNamespaceRule::processNode() should return list<PHPStan\Rules\IdentifierRuleError> but returns array{PHPStan\Rules\RuleError}.
PHPStan: src/Rules/Domain/RequireExceptionNamespaceRule.php#L78
Method Symplify\PHPStanRules\Rules\Domain\RequireExceptionNamespaceRule::processNode() should return list<PHPStan\Rules\IdentifierRuleError> but returns array{PHPStan\Rules\RuleError}.