Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Jun 1, 2022

Bumps nikic/php-parser from 4.10.4 to 4.14.0.

Release notes

Sourced from nikic/php-parser's releases.

PHP-Parser 4.14.0

Added

  • Added support for readonly classes.
  • Added rawValue attribute to LNumber, DNumber and String_ nodes, which stores the unparsed value of the literal (e.g. "1_000" rather than 1000).

PHP-Parser 4.13.2

Added

  • Added builders for enums and enum cases.

Fixed

  • NullsafeMethodCall now extends from CallLike.
  • The namespacedName property populated by the NameResolver is now declared on relevant nodes, to avoid a dynamic property deprecation warning with PHP 8.2.

PHP-Parser 4.13.1

Fixed

  • Support reserved keywords as enum cases.
  • Support array unpacking in constant expression evaluator.

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.

PHP-Parser 4.12.0

Added

  • [PHP 8.1] Added support for readonly properties (through a new MODIFIER_READONLY).
  • [PHP 8.1] Added support for final class constants.

Fixed

  • Fixed compatibility with PHP 8.1. & tokens are now canonicalized to the T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG and T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG tokens used in PHP 8.1. This happens unconditionally, regardless of whether the emulative lexer is used.

PHP-Parser 4.11.0

Added

... (truncated)

Changelog

Sourced from nikic/php-parser's changelog.

Version 4.14.0 (2022-05-31)

Added

  • Added support for readonly classes.
  • Added rawValue attribute to LNumber, DNumber and String_ nodes, which stores the unparsed value of the literal (e.g. "1_000" rather than 1000).

Version 4.13.2 (2021-11-30)

Added

  • Added builders for enums and enum cases.

Fixed

  • NullsafeMethodCall now extends from CallLike.
  • The namespacedName property populated by the NameResolver is now declared on relevant nodes, to avoid a dynamic property deprecation warning with PHP 8.2.

Version 4.13.1 (2021-11-03)

Fixed

  • Support reserved keywords as enum cases.
  • Support array unpacking in constant expression evaluator.

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.

... (truncated)

Commits
  • 34bea19 Release PHP-Parser 4.14.0
  • 678ccbe [PHP 8.2] Add readonly class support (#834)
  • 5d83adc [String_] Add rawValue attribute (#831)
  • 3bf0082 [DNumber] Add rawValue attribute to hold the original value (#833)
  • d3eb10a [LNumber] Add rawValue attribute to LNumber to allow numeric separator etc. (...
  • a6e3466 Reflect support for PHP 8.1 in the README
  • f4b835f Fix PHPDoc type of namespacedName properties
  • 210577f Release PHP-Parser 4.13.2
  • f09f227 Declare namespacedName property
  • d4cb98a Fix typo in property name
  • 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)

Bumps [nikic/php-parser](https://github.com/nikic/PHP-Parser) from 4.10.4 to 4.14.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.10.4...v4.14.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Jun 1, 2022
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Oct 1, 2022

Superseded by #314.

@dependabot dependabot bot closed this Oct 1, 2022
@dependabot dependabot bot deleted the dependabot/composer/playground-runner/nikic/php-parser-4.14.0 branch October 1, 2022 02:01
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.

1 participant