Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

php-parser

Package Overview
Dependencies
Maintainers
2
Versions
76
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.1.0-beta.7 to 3.1.0-beta.8

src/ast/variadicplaceholder.js

2

dist/php-parser.min.js.LICENSE.txt

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

* Parse PHP code from JS and returns its AST
* Build: f023e63055fa26291ffb - 5/23/2022
* Build: ad4444bf143d4b60fac4 - 5/25/2022
* Copyright (C) 2021 Glayzzle (BSD-3-Clause)

@@ -8,0 +8,0 @@ * @authors https://github.com/glayzzle/php-parser/graphs/contributors

{
"name": "php-parser",
"version": "3.1.0-beta.7",
"version": "3.1.0-beta.8",
"description": "Parse PHP code from JS and returns its AST",

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

@@ -583,2 +583,3 @@ /**

require("./ast/variadic"),
require("./ast/variadicplaceholder"),
require("./ast/while"),

@@ -585,0 +586,0 @@ require("./ast/yield"),

@@ -368,3 +368,10 @@ /**

this.expect("(") && this.next();
if (this.token !== ")") {
if (
this.version >= 801 &&
this.token === this.tok.T_ELLIPSIS &&
this.peek() === ")"
) {
result.push(this.node("variadicplaceholder")());
this.next();
} else if (this.token !== ")") {
result = this.read_non_empty_argument_list();

@@ -371,0 +378,0 @@ }

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