X Tutup
Skip to content

Bump nikic/php-parser from 4.12.0 to 4.13.0#39259

Merged
phil-davis merged 1 commit intomasterfrom
dependabot/composer/nikic/php-parser-4.13.0
Sep 21, 2021
Merged

Bump nikic/php-parser from 4.12.0 to 4.13.0#39259
phil-davis merged 1 commit intomasterfrom
dependabot/composer/nikic/php-parser-4.13.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 20, 2021

Bumps nikic/php-parser from 4.12.0 to 4.13.0.

Release notes

Sourced from nikic/php-parser's releases.

PHP-Parser 4.13.0

This release features full PHP 8.1 support.

Added

  • [PHP 8.1] Added support for intersection types using a new IntersectionType node. Additionally a ComplexType parent class for NullableType, UnionType and IntersectionType has been added.
  • [PHP 8.1] Added support for explicit octal literals.
  • [PHP 8.1] Added support for first-class callables. These are represented using a call whose first argument is a VariadicPlaceholder. The representation is intended to be forward-compatible with partial function application, just like the PHP feature itself. Call nodes now extend from Expr\CallLike, which provides an isFirstClassCallable() method to determine whether a placeholder id present. getArgs() can be used to assert that the call is not a first-class callable and returns Arg[] rather than array<Arg|VariadicPlaceholder>.

Fixed

  • Multiple modifiers for promoted properties are now accepted. In particular this allows something like public readonly for promoted properties.
  • Formatting-preserving pretty printing for comments in array literals has been fixed.
Changelog

Sourced from nikic/php-parser's changelog.

Version 4.13.0 (2021-09-20)

Added

  • [PHP 8.1] Added support for intersection types using a new IntersectionType node. Additionally a ComplexType parent class for NullableType, UnionType and IntersectionType has been added.
  • [PHP 8.1] Added support for explicit octal literals.
  • [PHP 8.1] Added support for first-class callables. These are represented using a call whose first argument is a VariadicPlaceholder. The representation is intended to be forward-compatible with partial function application, just like the PHP feature itself. Call nodes now extend from Expr\CallLike, which provides an isFirstClassCallable() method to determine whether a placeholder id present. getArgs() can be used to assert that the call is not a first-class callable and returns Arg[] rather than array<Arg|VariadicPlaceholder>.

Fixed

  • Multiple modifiers for promoted properties are now accepted. In particular this allows something like public readonly for promoted properties.
  • Formatting-preserving pretty printing for comments in array literals has been fixed.
Commits
  • 50953a2 Release PHP-Parser 4.13.0
  • 0a20979 Unified builder methods for setting types
  • a45fb2a Add CallLike parent class
  • 0850199 Don't make VariadicPlaceholder an expression
  • b5234ea Tweak coding style
  • 632ead3 Print comma before comments for new array item (#805)
  • 13549aa Add support for first-class callables
  • d2c645f Adjust token count in octal emulator
  • def24f2 Add support for explicit octal literals
  • cfeb195 Add test for new in initializer
  • 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 dependabot bot added dependencies php Pull requests that update Php code labels Sep 20, 2021
@dependabot dependabot bot requested a review from phil-davis September 20, 2021 22:05
@update-docs
Copy link

update-docs bot commented Sep 20, 2021

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

Bumps [nikic/php-parser](https://github.com/nikic/PHP-Parser) from 4.12.0 to 4.13.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.12.0...v4.13.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@phil-davis phil-davis force-pushed the dependabot/composer/nikic/php-parser-4.13.0 branch from 71f9f1c to 80f53d6 Compare September 21, 2021 02:53
@phil-davis
Copy link
Contributor

I added the changelog, and also this bumps:

$ composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 2 updates, 0 removals
  - Upgrading phpdocumentor/type-resolver (1.4.0 => 1.5.0)
  - Upgrading roave/security-advisories (dev-master 8cebf16 => dev-master 4911abe)
Writing lock file

which is just a dev tool dependency and so it is not added to the changelog.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@phil-davis phil-davis merged commit 01664b5 into master Sep 21, 2021
@delete-merged-branch delete-merged-branch bot deleted the dependabot/composer/nikic/php-parser-4.13.0 branch September 21, 2021 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup