diff options
-rw-r--r-- | Grammar.pp | 2 | ||||
-rw-r--r-- | Visitor/Interpreter.php | 3 |
2 files changed, 1 insertions, 4 deletions
@@ -279,7 +279,7 @@ arrayaccess: identifier: ( <identifier> | <this> ) - ( ::arrow:: <identifier> ( ::arrow:: <identifier> )* )? #dynamic_resolution + ( ::arrow:: <identifier> ( ::arrow:: <identifier> )* #dynamic_resolution )? | ( ::self:: #self_identifier | ::static:: #static_identifier diff --git a/Visitor/Interpreter.php b/Visitor/Interpreter.php index 0781763..ad60b68 100644 --- a/Visitor/Interpreter.php +++ b/Visitor/Interpreter.php @@ -408,9 +408,6 @@ class Interpreter implements \Hoa\Visitor\Visit { break; case '#dynamic_resolution': - if(1 === $element->getChildrenNumber()) - return $element->getChild(0)->accept($this, $handle, $eldnah); - $value = null; foreach($element->getChildren() as $child) { |