Skip to content

Commit

Permalink
Fix: Use more generic return type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 1, 2024
1 parent 2769247 commit f72567f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private static function createError(
string $methodName,
string $parameterName,
Reflection\ClassReflection $classUsedInTypeDeclaration
): Rules\IdentifierRuleError {
): Rules\RuleError {
if ($classReflection->isAnonymous()) {
$ruleErrorBuilder = Rules\RuleErrorBuilder::message(\sprintf(
'Method %s() in anonymous class has a parameter $%s with a type declaration of %s, but containers should not be injected.',
Expand Down

0 comments on commit f72567f

Please sign in to comment.