New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

php-parser

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

php-parser - npm Package Compare versions

Comparing version 3.0.0-prerelease.2 to 3.0.0-prerelease.3

2

package.json
{
"name": "php-parser",
"version": "3.0.0-prerelease.2",
"version": "3.0.0-prerelease.3",
"description": "Parse PHP code and returns its AST",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -134,3 +134,3 @@ /*!

engine.parseCode = function(buffer, filename, options) {
if (typeof filename === "object") {
if (typeof filename === "object" && !options) {
// retro-compatibility

@@ -137,0 +137,0 @@ options = filename;

@@ -285,2 +285,8 @@ /**

}
// #176 : register latest position
this.prev = [
this.lexer.yylloc.last_line,
this.lexer.yylloc.last_column,
this.lexer.offset
];
return program(childs, this._errors, this._docs, this._tokens);

@@ -287,0 +293,0 @@ };

@@ -133,3 +133,15 @@ /**

while (this.token === ",") {
result.push(this.next().read_use_declaration(typed));
this.next();
if (typed) {
if (
this.token !== this.tok.T_FUNCTION &&
this.token !== this.tok.T_CONST &&
this.token !== this.tok.T_STRING
) {
break;
}
} else if (this.token !== this.tok.T_STRING) {
break;
}
result.push(this.read_use_declaration(typed));
}

@@ -136,0 +148,0 @@ return result;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc