Skip to content

Update nikic/php-parser requirement from ^4 to ^5 - #33

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

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on nikic/php-parser to permit the latest version.

Release notes

Sourced from nikic/php-parser's releases.

PHP-Parser 5.10.0

Changed

  • Implemented a number of performance optimizations for parsing and name resolution.

Fixed

  • Fixed key renumbering in ConstExprEvaluator evaluation of array unpacking.
  • Reject malformed Unicode escape sequences.
  • Don't incorrectly strip trailing <?php during pretty printing in one edge case.
  • Fix insertiong of parameter type after promoted property modifiers (FPPP).
  • Fix marking an anonymous class with attributes readonly (FPPP).
Changelog

Sourced from nikic/php-parser's changelog.

Version 5.10.0 (2026-11-28)

Changed

  • Implemented a number of performance optimizations for parsing and name resolution.

Fixed

  • Fixed key renumbering in ConstExprEvaluator evaluation of array unpacking.
  • Reject malformed Unicode escape sequences.
  • Don't incorrectly strip trailing <?php during pretty printing in one edge case.
  • Fix insertiong of parameter type after promoted property modifiers (FPPP).
  • Fix marking an anonymous class with attributes readonly (FPPP).

Version 5.9.0 (2026-09-13)

Fixed

  • Fix attribute insertion on enums and enum cases in formatting-preserving pretty printer.
  • Reject invalid Unicode escapes above \u{10FFFF}. Previously the limit was \u{1FFFFF}.
  • Don't allow newlines in (void) cast emulation.
  • Fix warning on float hex/binary/octal literals with PHP 8.6.

Added

  • Added support for PHP 8.6 partial function application. Placeholders are represented using ArgPlaceholder nodes.

Version 5.8.0 (2026-06-04)

Fixed

  • Treat _ as label character in formatting-preserving pretty printer.
  • Handle comment after object operator in keyword emulator.

Changed

  • Drop support for pipe operator in constant expression evaluator. It is not supported in constant expressions and may pose security risks, as it allows calls to arbitrary functions.
  • void parameter types now generate a (recoverable) error during parsing.
  • Restored reverse emulation support for fn keywords when targeting PHP before 7.4.

Version 5.7.0 (2025-12-06)

Fixed

... (truncated)

Commits
  • 95d3450 Release PHP-Parser 5.10.0
  • da105ab fix: Handle crash on mark readonly on attributed anonymous class (#1179)
  • 5b65a7b perf: Free previous tokens before tokenizing in ParserAbstract::parse() (#1199)
  • 629652b Insert param type after promoted property modifiers (#1198)
  • 24c72b4 Do not strip trailing <?php if inline HTML ends with <?php (#1190)
  • 722d01c Do less work per reduction in ParserAbstract::doParse() (#1191)
  • 14419ae Update phpstan baseline
  • 278137f Fix copy-paste typos in Trait_ docblock (#1195)
  • 679d41e Drop an assertion that never runs in testInvalidDeepArray (#1183)
  • 1ee86c8 perf: Use local variables for parser tables in ParserAbstract::doParse() (#1182)
  • Additional commits viewable in compare view

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)

Updates the requirements on [nikic/php-parser](https://github.com/nikic/PHP-Parser) to permit the latest version.
- [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.0.0...v5.10.0)

---
updated-dependencies:
- dependency-name: nikic/php-parser
  dependency-version: 5.10.0
  dependency-type: direct:development
...

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 Dec 1, 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