File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 707707 // In case of offset access type
708708 case $ child instanceof Node \Stmt \TypeStatement:
709709 if ($ this ->offsets === false ) {
710- throw FeatureNotAllowedException::fromFeature ('square bracket type offsets ' , $ offset );
710+ throw FeatureNotAllowedException::fromFeature ('type offsets ' , $ offset );
711711 }
712712
713713 $ statement = new Node \Stmt \TypeOffsetAccessNode ($ statement , $ child );
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ TypesList -> {
135135 // In case of offset access type
136136 case $child instanceof Node\Stmt\TypeStatement:
137137 if ($this->offsets === false) {
138- throw FeatureNotAllowedException::fromFeature('square bracket type offsets', $offset);
138+ throw FeatureNotAllowedException::fromFeature('type offsets', $offset);
139139 }
140140
141141 $statement = new Node\Stmt\TypeOffsetAccessNode($statement, $child);
You can’t perform that action at this time.
0 commit comments