Skip to content

Commit

Permalink
Minor ParamTypeFromStrictTypedPropertyRector improvements (#3661)
Browse files Browse the repository at this point in the history
* Minor ParamTypeFromStrictTypedPropertyRector improvements

* re-add `@var`
  • Loading branch information
staabm committed Apr 23, 2023
1 parent c7379ec commit 54663e7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ private function decorateParamWithType(ClassMethod $classMethod, Param $param):
return null;
}

if ($classMethod->isAbstract()) {
return null;
}

if ($this->parentClassMethodTypeOverrideGuard->hasParentClassMethod($classMethod)) {
return null;
}
Expand Down

0 comments on commit 54663e7

Please sign in to comment.