We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e997fa commit e672c2cCopy full SHA for e672c2c
src/parser.js
@@ -231,6 +231,11 @@ const parser = function (lexer, ast) {
231
this.tok.T_FILE,
232
this.tok.T_DIR,
233
this.tok.T_NS_C,
234
+ '"',
235
+ 'b"',
236
+ 'B"',
237
+ "-",
238
+ this.tok.T_NS_SEPARATOR,
239
].map(mapIt)
240
),
241
};
src/parser/expr.js
@@ -359,7 +359,7 @@ module.exports = {
359
let value = null;
360
let key = null;
361
result = this.node("yield");
362
- if (this.next().is("EXPR") || this.is("SCALAR")) {
+ if (this.next().is("EXPR")) {
363
// reads the yield return value
364
value = this.read_expr();
365
if (this.token === this.tok.T_DOUBLE_ARROW) {
0 commit comments