File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"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" ,
5
5
"main" : " src/index.js" ,
6
6
"scripts" : {
7
7
"test" : " node node_modules/mocha/bin/mocha test --stack-size=5000" ,
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ module.exports = {
148
148
function read_variable_declaration ( ) {
149
149
var result = this . node ( 'property' ) ;
150
150
this . expect ( this . tok . T_VARIABLE ) ;
151
- var name = this . text ( ) ;
151
+ var name = this . text ( ) . substring ( 1 ) ; // ignore $
152
152
this . next ( ) ;
153
153
if ( this . token === ';' || this . token === ',' ) {
154
154
return result ( name , null , flags ) ;
You can’t perform that action at this time.
0 commit comments