Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit b334bf4

Browse files
author
Edson Medina
committed
Fixed #81
1 parent 0fe6398 commit b334bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NodeWrapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ public function getName()
9595

9696
public function getArrayDimFetchName ($node)
9797
{
98-
if (isset($node->var) && $node->var instanceof Expr\Variable) {
98+
if (isset($node->var)) {
9999
return $this->getArrayDimFetchName($node->var);
100100
}
101101

102-
if ($node->name instanceof Expr\ArrayDimFetch) {
102+
if (isset($node->name) && $node->name instanceof Expr\ArrayDimFetch) {
103103
return $this->getArrayDimFetchName($node->name);
104104
}
105105

0 commit comments

Comments
 (0)