Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Update nikic/php-parser requirement from ^4.2.3 to ^4.6.0 #140

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

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

Release notes

Sourced from nikic/php-parser's releases.

PHP-Parser 4.6.0

Added

  • [PHP 8.0] Added support for trailing commas in parameter lists.
  • [PHP 8.0] Added support for constructor promotion. The parameter visibility is stored in Node\Param::$flags.

Fixed

  • Comment tokens now always follow the PHP 8 interpretation, and do not include trailing whitespace.
  • As a result of the previous change, some whitespace issues when inserting a statement into a method containing only a comment, and using the formatting-preserving pretty printer, have been resolved.
Changelog

Sourced from nikic/php-parser's changelog.

Version 4.6.0 (2020-07-02)

Added

  • [PHP 8.0] Added support for trailing commas in parameter lists.
  • [PHP 8.0] Added support for constructor promotion. The parameter visibility is stored in Node\Param::$flags.

Fixed

  • Comment tokens now always follow the PHP 8 interpretation, and do not include trailing whitespace.
  • As a result of the previous change, some whitespace issues when inserting a statement into a method containing only a comment, and using the formatting-preserving pretty printer, have been resolved.

Version 4.5.0 (2020-06-03)

Added

  • [PHP 8.0] Added support for the mixed type. This means mixed types are now parsed as an Identifier rather than a Name.
  • [PHP 8.0] Added support for catching without capturing the exception. This means that Catch_::$var may now be null.

Version 4.4.0 (2020-04-10)

Added

  • Added support for passing union types in builders.
  • Added end line, token position and file position information for comments.
  • Added getProperty() method to ClassLike nodes.

Fixed

  • Fixed generation of invalid code when using the formatting preserving pretty printer, and inserting code next to certain nop statements. The formatting is still ugly though.
  • getDocComment() no longer requires that the very last comment before a node be a doc comment. There may not be non-doc comments between the doc comment and the declaration.
  • Allowed arbitrary expressions in isset() and list(), rather than just variables. In particular, this allows isset(($x)), which is legal PHP code.
  • [PHP 8.0] Add support for variable syntax tweaks RFC.

Version 4.3.0 (2019-11-08)

Added

Commits
  • c346bbf Release PHP-Parser 4.6.0
  • 4abc531 Canonicalize to PHP 8 comment token format
  • b58b19e Add constructor promotion support
  • 0d2d8f9 FPPP: Support catch without variable
  • 244db65 [PHP 8.0] Add trailing comma in parameter list
  • 53c2753 Release PHP-Parser 4.5.0
  • b5f5313 [PHP 8.0] Add exception witout variable
  • 32f8966 Add support for the mixed type
  • f33f081 Fix a minor typo
  • bd43ec7 Release PHP-Parser 4.4.0
  • 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.

If all status checks pass Dependabot will automatically merge this pull request.


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 dependabot-preview bot added the dependencies Pull requests that update a dependency file label Jul 14, 2020
@dependabot-preview dependabot-preview bot requested a review from Ocramius July 14, 2020 07:48
@dependabot-preview
Copy link
Contributor Author

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

@Ocramius Ocramius added this to the 3.2.0 milestone Jul 14, 2020
@Ocramius
Copy link
Owner

Checked: BC compliance checks failed, CS failed - unrelated to patch.

@Ocramius Ocramius merged commit 7bbac07 into master Jul 14, 2020
@dependabot-preview dependabot-preview bot deleted the dependabot/composer/nikic/php-parser-tw-4.6.0 branch July 14, 2020 08:10
@Ocramius Ocramius modified the milestones: 3.2.0, 4.0.0 Jul 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant