Skip to content

chore(deps): Bump nikic/php-parser from 4.19.5 to 5.7.0#296

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/composer/nikic/php-parser-5.7.0
Open

chore(deps): Bump nikic/php-parser from 4.19.5 to 5.7.0#296
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/composer/nikic/php-parser-5.7.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 19, 2026

Bumps nikic/php-parser from 4.19.5 to 5.7.0.

Release notes

Sourced from nikic/php-parser's releases.

PHP-Parser 5.7.0

Fixed

  • Fixed changing modifier on anonymous class with formatting preserving pretty printer.
  • Emit an error for unparenthesized arrow functions in pipe operator, and print necessary parentheses in the pretty printer.
  • Fix PHP 8.5 deprecation warning in php-parse binary.

Changed

  • When targeting PHP 8.4 or newer, omit parentheses around immediately dereferenced new expressions.

Added

  • Added shouldPrintRawValue attribute to Scalar\Int_, which makes the pretty printer use the rawValue of the node. This can be used to print integers with separators.

PHP-Parser 5.6.2

Fixed

  • Fixed formatting-preserving pretty-printing when changing the visibility modifier on a node that has attributes.
  • Fixed chr() deprecation warning on PHP 8.5.

Added

  • Added Param::isFinal() method.

PHP-Parser 5.6.1

Fixed

  • Fixed Param::isPublic() for parameters with asymmetric visibility keyword.
  • Fixed PHP 8.5 deprecation warnings for SplObjectStorage methods.

Added

  • Added cast kind attributes to Cast\Int_, Cast\Bool_ and Cast\String_. These allow distinguishing the deprecated versions of these casts.

PHP-Parser 5.6.0

Added

  • [8.5] Added support for clone with arbitrary function arguments. This will be parsed as an Expr\FuncCall node, instead of the usual Expr\Clone_ node.
  • [8.5] Permit declaration of function clone for use in stubs.
  • [8.5] Added support for the pipe operator, represented by Expr\BinaryOp\Pipe.
  • [8.5] Added support for the (void) cast, represented by Expr\Cast\Void_.
  • [8.5] Added support for the final modifier on promoted properties.
  • Added CallLike::getArg() to fetch an argument by position and name.

PHP-Parser 5.5.0

Added

  • [8.5] Added support for attributes on constants. Stmt\Const_ now has an attrGroups subnode.
  • Added weakReferences option to NodeConnectingVisitor and ParentConnectingVisitor. This will create the parent/next/prev references as WeakReferences, to avoid making the AST cyclic and thus increasing GC pressure.

... (truncated)

Changelog

Sourced from nikic/php-parser's changelog.

Version 5.7.0 (2025-12-06)

Fixed

  • Fixed changing modifier on anonymous class with formatting preserving pretty printer.
  • Emit an error for unparenthesized arrow functions in pipe operator, and print necessary parentheses in the pretty printer.
  • Fix PHP 8.5 deprecation warning in php-parse binary.

Changed

  • When targeting PHP 8.4 or newer, omit parentheses around immediately dereferenced new expressions.

Added

  • Added shouldPrintRawValue attribute to Scalar\Int_, which makes the pretty printer use the rawValue of the node. This can be used to print integers with separators.

Version 5.6.2 (2025-10-21)

Fixed

  • Fixed formatting-preserving pretty-printing when changing the visibility modifier on a node that has attributes.
  • Fixed chr() deprecation warning on PHP 8.5.

Added

  • Added Param::isFinal() method.

Version 5.6.1 (2025-08-13)

Fixed

  • Fixed Param::isPublic() for parameters with asymmetric visibility keyword.
  • Fixed PHP 8.5 deprecation warnings for SplObjectStorage methods.

Added

  • Added cast kind attributes to Cast\Int_, Cast\Bool_ and Cast\String_. These allow distinguishing the deprecated versions of these casts.

Version 5.6.0 (2025-07-27)

Added

... (truncated)

Commits
  • dca41cd Release PHP-Parser 5.7.0
  • 8211479 Add shouldPrintRawValue attribute to print rawValue (#1127)
  • e481026 Document attributes used by pretty printer
  • 24fb844 Stop using a semicolon (;) at the end of case statements for PHP 8.5
  • d82749c [types] add known docblock types to traverseArray(), cleanup no relevant git ...
  • c97b23d Omit new parentheses when printing for PHP 8.4
  • 6b05527 Print parentheses around arrow function in pipe operator
  • f01ac40 Emit error for unparenthesized arrow function in pipe operator
  • 232169f Fix modifier change on anonymous class
  • f174b0a Fix version reference in changelog
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [nikic/php-parser](https://github.com/nikic/PHP-Parser) from 4.19.5 to 5.7.0.
- [Release notes](https://github.com/nikic/PHP-Parser/releases)
- [Changelog](https://github.com/nikic/PHP-Parser/blob/master/CHANGELOG.md)
- [Commits](nikic/PHP-Parser@v4.19.5...v5.7.0)

---
updated-dependencies:
- dependency-name: nikic/php-parser
  dependency-version: 5.7.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants