php-parser
Advanced tools
Comparing version 2.0.6 to 2.0.7
{ | ||
"name": "php-parser", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Parse PHP code and returns its AST", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
# Releases | ||
## 2.0.7 : (2017-09-03) | ||
- Fix #86 : bug on Object properties usage in PHP like `__proto__`, or `constructor` | ||
- Fix #84 : remove null statements from bodies | ||
## 2.0.6 : (2017-07-16) | ||
@@ -4,0 +8,0 @@ |
@@ -18,5 +18,5 @@ /*! | ||
Statement.apply(this, [kind || KIND, location]); | ||
this.children = children; | ||
this.children = children.filter(Boolean); | ||
}); | ||
module.exports = Block; |
@@ -10,3 +10,3 @@ /*! | ||
var id = this.keywords[token]; | ||
if (!id) { | ||
if (typeof id !== 'number') { | ||
if (token === 'yield') { | ||
@@ -101,3 +101,3 @@ if (this.tryMatch(' from')) { | ||
var castId = this.castKeywords[castToken]; | ||
if (castId) { | ||
if (typeof castId === 'number') { | ||
this.input(); | ||
@@ -104,0 +104,0 @@ if (this.is_TABSPACE()) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2258807