Skip to content

Commit

Permalink
[Performance] Use STOP_TRAVERSAL inside SimpleCallableNodeTraverser o…
Browse files Browse the repository at this point in the history
…n ConstructorAssignDetector (#4247)
  • Loading branch information
samsonasik committed Jun 16, 2023
1 parent 765450f commit a4096b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function isPropertyAssigned(ClassLike $classLike, string $propertyName):

$isAssignedInConstructor = true;

return NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
return NodeTraverser::STOP_TRAVERSAL;
});
}

Expand Down

0 comments on commit a4096b2

Please sign in to comment.