Skip to content

Commit

Permalink
[Scoper] Exclude parent return on DowngradeStaticTypeDeclarationRector (
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Aug 26, 2021
1 parent d8a6725 commit 2665992
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function getStatic()
*/
public function refactor(Node $node): ?Node
{
if ($node->returnType instanceof Name && $this->nodeNameResolver->isName($node->returnType, 'self')) {
if ($node->returnType instanceof Name && $this->nodeNameResolver->isNames($node->returnType, ['self', 'parent'])) {
return null;
}

Expand Down

0 comments on commit 2665992

Please sign in to comment.