@@ -43,25 +43,25 @@ ShapeFieldsList -> {
4343
4444 foreach ($children as $field) {
4545 if ($field instanceof Node\Stmt\Shape\ExplicitFieldNode) {
46- $identifier = $field->getIdentifier ();
46+ $key = $field->getKey ();
4747
48- if (\in_array($identifier , $explicit, true)) {
48+ if (\in_array($key , $explicit, true)) {
4949 throw new SemanticException(
50- \sprintf('Duplicate key "%s"', $identifier ),
50+ \sprintf('Duplicate key "%s"', $key ),
5151 $field->offset,
5252 SemanticException::CODE_SHAPE_KEY_DUPLICATION,
5353 );
5454 }
5555
56- $explicit[] = $identifier ;
56+ $explicit[] = $key ;
5757 } else {
5858 $implicit = true;
5959 }
6060 }
6161
6262 if ($explicit !== [] && $implicit) {
6363 throw new SemanticException(
64- \sprintf('Cannot mix explicit and implicit shape keys', $identifier ),
64+ \sprintf('Cannot mix explicit and implicit shape keys', $key ),
6565 $offset,
6666 SemanticException::CODE_SHAPE_KEY_MIX,
6767 );
@@ -98,7 +98,7 @@ ExplicitField -> {
9898 ;
9999
100100ImplicitField -> {
101- return new Node\Stmt\Shape\FieldNode ($children[0]);
101+ return new Node\Stmt\Shape\ImplicitFieldNode ($children[0]);
102102}
103103 : ShapeValue()
104104 ;
0 commit comments