We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dcc871 commit 9047ecaCopy full SHA for 9047eca
src/parser/expr.js
@@ -405,19 +405,6 @@ module.exports = {
405
}
406
} else if (this.is('SCALAR')) {
407
expr = this.read_scalar();
408
- // handle dereferencable
409
- while(this.token !== this.EOF) {
410
- if (this.token === this.tok.T_OBJECT_OPERATOR) {
411
- expr = this.recursive_variable_chain_scan(expr, false);
412
- } else if (this.token === this.tok.T_CURLY_OPEN || this.token === '[') {
413
- expr = this.read_dereferencable(expr);
414
- } else if (this.token === '(') {
415
- // https://github.com/php/php-src/blob/master/Zend/zend_language_parser.y#L1118
416
- expr = this.node('call')(expr, this.read_function_argument_list());
417
- } else {
418
- return expr;
419
- }
420
421
} else {
422
this.error('EXPR');
423
this.next();
0 commit comments