Skip to content

Conversation

@dependabot-preview
Copy link

Bumps nikic/php-parser from 4.3.0 to 4.10.3.

Release notes

Sourced from nikic/php-parser's releases.

PHP-Parser 4.10.3

Fixed

  • Fixed formatting-preserving pretty printing for "{$x}".
  • Ternary expressions are now treated as non-associative in the pretty printer, in order to generate code that is compatible with the parentheses requirement introduced in PHP 8.
  • Removed no longer necessary error_clear_last() call in lexer, which may interfere with fatal error handlers if invoked during shutdown.

PHP-Parser 4.10.2

Fixed

  • Fixed check for token emulation conflicts with other libraries.

PHP-Parser 4.10.1

Added

  • Added support for recovering from a missing semicolon after a property or class constant declaration.

Fixed

  • Fix spurious whitespace in formatting-preserving pretty printer when both removing and adding elements at the start of a list.
  • Fix incorrect case-sensitivity in keyword token emulation.

PHP-Parser 4.10.0

Added

  • [PHP 8.0] Added support for attributes. These are represented using a new AttributeGroup node containing Attribute nodes. A new attrGroups subnode is available on all node types that support attributes, i.e. Stmt\Class_, Stmt\Trait_, Stmt\Interface_, Stmt\Function_, Stmt\ClassMethod, Stmt\ClassConst, Stmt\Property, Expr\Closure, Expr\ArrowFunction and Param.
  • [PHP 8.0] Added support for nullsafe properties inside interpolated strings, in line with an upstream change.

Fixed

  • Improved compatibility with other libraries that use forward compatibility defines for PHP tokens.

PHP-Parser 4.9.1

Added

  • Added support for removing the first element of a list to the formatting-preserving pretty printer.

Fixed

  • Allow member modifiers as part of namespaced names. These were missed when support for other keywords was added.

PHP-Parser 4.9.0

Added

  • [PHP 8.0] Added support for named arguments, represented using a new name subnode on Arg.
  • [PHP 8.0] Added support for static return type, represented like a normal class return type.
  • [PHP 8.0] Added support for throw expression, represented using a new Expr\Throw_ node. For backwards compatibility reasons, throw expressions in statement context continue to be represented using Stmt\Throw_.
  • [PHP 8.0] Added support for keywords as parts of namespaced names.

Fixed

Changelog

Sourced from nikic/php-parser's changelog.

Version 4.10.3 (2020-12-03)

Fixed

  • Fixed formatting-preserving pretty printing for "{$x}".
  • Ternary expressions are now treated as non-associative in the pretty printer, in order to generate code that is compatible with the parentheses requirement introduced in PHP 8.
  • Removed no longer necessary error_clear_last() call in lexer, which may interfere with fatal error handlers if invoked during shutdown.

Version 4.10.2 (2020-09-26)

Fixed

  • Fixed check for token emulation conflicts with other libraries.

Version 4.10.1 (2020-09-23)

Added

  • Added support for recovering from a missing semicolon after a property or class constant declaration.

Fixed

  • Fix spurious whitespace in formatting-preserving pretty printer when both removing and adding elements at the start of a list.
  • Fix incorrect case-sensitivity in keyword token emulation.

Version 4.10.0 (2020-09-19)

Added

  • [PHP 8.0] Added support for attributes. These are represented using a new AttributeGroup node containing Attribute nodes. A new attrGroups subnode is available on all node types that support attributes, i.e. Stmt\Class_, Stmt\Trait_, Stmt\Interface_, Stmt\Function_, Stmt\ClassMethod, Stmt\ClassConst, Stmt\Property, Expr\Closure, Expr\ArrowFunction and Param.
  • [PHP 8.0] Added support for nullsafe properties inside interpolated strings, in line with an upstream change.

Fixed

  • Improved compatibility with other libraries that use forward compatibility defines for PHP tokens.
Commits
  • dbe56d2 Release PHP-Parser 4.10.3
  • c64986f Allow both '{' and T_CURLY_OPEN as curly bracket (#732)
  • bc7a9bf Remove useless code left from old implementation
  • 2816485 Updated README to indicate that parsing PHP 8.0 code is supported
  • 1d1bc8a Upgrade some PrettyPrinter methods to protected
  • d520bc9 Don't allow failures on PHP 8.0 integration tests
  • 51e0b30 Test against 8.0.0rc1
  • eff72ee Fix #718: PrettyPrinter breaks nested ternaries
  • 658f1be Release PHP-Parser 4.10.2
  • b9b65a2 Fix check for token emulation conflicts
  • 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview
Copy link
Author

Superseded by #123.

@dependabot-preview dependabot-preview bot deleted the dependabot/composer/nikic/php-parser-4.10.3 branch January 13, 2021 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant