Skip to content

Commit

Permalink
skip multiple props
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Nov 5, 2024
1 parent dd82af8 commit d5c4f77
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ public function refactor(Node $node): ?Node
}

$property = $classStmt;

if (count($property->props) !== 1) {
continue;
}

$propertyName = $property->props[0]->name->toString();

if ($this->shouldSkipProperty($isFinalClass, $property, $classReflection, $propertyName)) {
Expand Down

0 comments on commit d5c4f77

Please sign in to comment.