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 4c87f29 commit 78ca985Copy full SHA for 78ca985
src/parser/variable.js
@@ -3,6 +3,7 @@
3
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
4
* @url http://glayzzle.com
5
*/
6
+"use strict";
7
module.exports = {
8
/**
9
* Reads a variable
@@ -232,8 +233,9 @@ module.exports = {
232
233
var result = this.node('variable');
234
if (this.expect([this.tok.T_VARIABLE, '$']) && this.token === this.tok.T_VARIABLE) {
235
// plain variable name
- result = result(this.text(), byref);
236
+ var name = this.text();
237
this.next();
238
+ result = result(name, byref);
239
} else {
240
if (this.token === '$') this.next();
241
// dynamic variable name
0 commit comments