We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25e7384 commit 74cfe4eCopy full SHA for 74cfe4e
src/StaticAnalysis/Visitor/AttributeParentConnectingVisitor.php
@@ -37,10 +37,8 @@ public function beforeTraverse(array $nodes): null
37
38
public function enterNode(Node $node): null
39
{
40
- if (
41
- $this->stack !== [] &&
42
- ($node instanceof Node\Attribute || $node instanceof Node\AttributeGroup)
43
- ) {
+ if ($this->stack !== [] &&
+ ($node instanceof Node\Attribute || $node instanceof Node\AttributeGroup)) {
44
$node->setAttribute('parent', $this->stack[count($this->stack) - 1]);
45
}
46
0 commit comments