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 9aec5ed commit 1f49a9cCopy full SHA for 1f49a9c
src/parser/statement.js
@@ -208,7 +208,7 @@ module.exports = {
208
209
case this.tok.T_STATIC:
210
var current = [this.token, this.lexer.getState()];
211
- var result = this.node('global');
+ var result = this.node('static');
212
if (this.next().token === this.tok.T_DOUBLE_COLON) {
213
// static keyword for a class
214
this.lexer.tokens.push(current);
@@ -225,7 +225,7 @@ module.exports = {
225
return [name, value];
226
}, ',');
227
this.expectEndOfStatement();
228
- return result(items);
+ return result('declare', items);
229
230
case this.tok.T_ECHO:
231
var items = this.next().read_list(this.read_expr, ',');
0 commit comments