Skip to content

Commit 95bd3da

Browse files
committed
release 2.0.0-pre3
1 parent 992951f commit 95bd3da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "php-parser",
3-
"version": "2.0.0-alpha.2",
4-
"description": "Parse PHP 5/7 code and returns its AST",
3+
"version": "2.0.0-pre3",
4+
"description": "Parse PHP code and returns its AST",
55
"main": "src/index.js",
66
"scripts": {
77
"test": "node node_modules/mocha/bin/mocha test --stack-size=5000",

src/parser/class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module.exports = {
148148
function read_variable_declaration() {
149149
var result = this.node('property');
150150
this.expect(this.tok.T_VARIABLE);
151-
var name = this.text();
151+
var name = this.text().substring(1); // ignore $
152152
this.next();
153153
if (this.token === ';' || this.token === ',') {
154154
return result(name, null, flags);

0 commit comments

Comments
 (0)