Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 27, 2021
1 parent f1ce1aa commit 50ebac9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rules/Php81/Rector/ClassMethod/NewInInitializerRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ public function getNodeTypes(): array
public function refactor(Node $node): ?Node
{
$class = $this->betterNodeFinder->findParentType($node, Class_::class);
if ($class instanceof Class_) {
if ($class->isAbstract()) {
return null;
}
if ($class instanceof Class_ && $class->isAbstract()) {
return null;
}

if (! $this->isName($node, MethodName::CONSTRUCT)) {
Expand Down

0 comments on commit 50ebac9

Please sign in to comment.