Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency nikic/php-parser to v5 #660

Open
wants to merge 1 commit into
base: 4.7.x
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 8, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
nikic/php-parser ^4.16.0 -> ^5.3.1 age adoption passing confidence

Release Notes

nikic/PHP-Parser (nikic/php-parser)

v5.3.1

Compare Source

Added
  • Added support for declaring functions with name exit or die, to allow their use in stubs.

v5.3.0

Compare Source

Added
  • Added indent option to pretty printer, which can be used to specify the indentation to use
    (defaulting to four spaces). This also allows using tab indentation.
Fixed
  • Resolve names in PropertyHooks in the NameResolver.
  • Include the trailing semicolon inside Stmt\GroupUse nodes, making them consistent with
    Stmt\Use_ nodes.
  • Fixed indentation sometimes becoming negative in formatting-preserving pretty printer, resulting
    in ValueErrors.

v5.2.0

Compare Source

Added
  • [8.4] Added support for __PROPERTY__ magic constant, represented using a
    Node\Scalar\MagicConst\Property node.
  • [8.4] Added support for property hooks, which are represented using a new hooks subnode on
    Node\Stmt\Property and Node\Param, which contains an array of Node\PropertyHook.
  • [8.4] Added support for asymmetric visibility modifiers. Property flags can now hold the
    additional bits Modifiers::PUBLIC_SET, Modifiers::PROTECTED_SET and Modifiers::PRIVATE_SET.
  • [8.4] Added support for generalized exit function. For backwards compatibility, exit without
    argument or a single plain argument continues to use a Node\Expr\Exit_ node. Otherwise (e.g.
    if a named argument is used) it will be represented as a plain Node\Expr\FuncCall.
  • Added support for passing enum values to various builder methods, like BuilderFactory::val().
Removed
  • Removed support for alternative array syntax $array{0} from the PHP 8 parser. It is still
    supported by the PHP 7 parser. This is necessary in order to support property hooks.

v5.1.0

Compare Source

Added
  • [8.4] Added support for dereferencing new expressions without parentheses.
Fixed
  • Fixed redundant parentheses being added when pretty printing ternary expressions.
Changed
  • Made some phpdoc types more precise.

v5.0.2

Compare Source

Fixed
  • Fix handling of indentation on next line after opening PHP tag in formatting-preserving pretty
    printer.
Changed
  • Avoid cyclic references in Parser objects. This means that no longer used parser objects are
    immediately destroyed now, instead of requiring cycle GC.
  • Update PhpVersion::getNewestSupported() to report PHP 8.3 instead of PHP 8.2.

v5.0.1

Compare Source

Changed
  • Added check to detect use of PHP-Parser with libraries that define T_* compatibility tokens
    with incorrect type (such as string instead of int). This would lead to TypeErrors down the
    line. Now an Error will be thrown early to indicate the problem.

v5.0.0

Compare Source

See UPGRADE-5.0 for detailed migration instructions.

Fixed
  • Fixed parent class of PropertyItem and UseItem.

v4.19.4: PHP-Parser 4.19.4

Compare Source

Fixed
  • Remove the Parser\Php8 class from PHP-Parser 5.x that was mistakenly added. It could cause errors when using something like composer preload.

v4.19.3: PHP-Parser 4.19.3

Compare Source

Fixed
  • Include the trailing semicolon inside Stmt\GroupUse nodes, making them consistent with Stmt\Use_ nodes.
  • Fixed indentation sometimes becoming negative in formatting-preserving pretty printer, resulting in ValueErrors.

v4.19.2: PHP-Parser 4.19.2

Compare Source

Added
  • Added support for passing enum values to various builder methods, like BuilderFactory::val().

v4.19.1: PHP-Parser 4.19.1

Compare Source

Fixed
  • Fixed "Optional parameter before required parameter" deprecation warning introduced in previous version.

v4.19.0: PHP-Parser 4.19.0

Compare Source

Changed
  • Do not use implicitly nullable parameters, which are deprecated in PHP 8.4.
  • Remove support for running on PHP 7.0, which does not support explicitly nullable parameters.

v4.18.0: PHP-Parser 4.18.0

Compare Source

Added
  • Added methods ParserFactory::createForNewestSupportedVersion() and ParserFactory::createForHostVersion() for forward-compatibility with PHP-Parser 5.0.
Fixed
  • Fixed missing name resolution of class constant types.
  • Fixed class members being dropped if an error is encountered while parsing a later class member (when error recovery is enabled).
Changed
  • The grammar/ directory has been excluded from exported git archives.

v4.17.1: PHP-Parser 4.17.1

Compare Source

Fixed
  • Fixed phpdoc mismatches for ClassConst::$type introduced in previous release.

v4.17.0: PHP-Parser 4.17.0

Compare Source

Added
  • [PHP 8.3] Added support for typed class constants.
  • [PHP 8.3] Added supprot for dynamic class constant fetch.
  • [PHP 8.3] Added support for readonly anonymous classes.
Fixed
  • Fixed missing required parentheses when pretty printing new with an expression class name.
  • Fixed missing required parentheses when pretty printing (CONST)::$x and similar.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

Read more about the use of Renovate Bot within ocramius/* projects.

@renovate renovate bot added the renovate label Jan 8, 2024
Copy link
Contributor Author

renovate bot commented Jan 8, 2024

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update nikic/php-parser:5.0.2 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires nikic/php-parser ^5.0.2, found nikic/php-parser[v5.0.2] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - ocramius/code-generator-utils is locked to version 1.7.0 and an update of this package was not requested.
    - ocramius/code-generator-utils 1.7.0 requires nikic/php-parser ^4.15.3 -> found nikic/php-parser[v4.15.3, ..., v4.18.0] but it conflicts with your root composer.json require (^5.0.2).
  Problem 3
    - vimeo/psalm is locked to version 5.13.1 and an update of this package was not requested.
    - vimeo/psalm 5.13.1 requires nikic/php-parser ^4.14 -> found nikic/php-parser[v4.14.0, ..., v4.18.0] but it conflicts with your root composer.json require (^5.0.2).
  Problem 4
    - phpunit/php-code-coverage 9.2.26 requires nikic/php-parser ^4.15 -> found nikic/php-parser[v4.15.0, ..., v4.18.0] but it conflicts with your root composer.json require (^5.0.2).
    - phpunit/phpunit 9.6.10 requires phpunit/php-code-coverage ^9.2.13 -> satisfiable by phpunit/php-code-coverage[9.2.26].
    - phpunit/phpunit is locked to version 9.6.10 and an update of this package was not requested.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch 3 times, most recently from add6278 to 2cc95de Compare January 9, 2024 10:05
@renovate renovate bot changed the base branch from 4.6.x to 4.7.x January 9, 2024 13:15
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch from 2cc95de to 9773dcf Compare February 21, 2024 21:39
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch from 9773dcf to 53d001c Compare March 5, 2024 22:58
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch from 53d001c to 998c8ba Compare July 1, 2024 21:49
Copy link
Contributor Author

renovate bot commented Jul 1, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update nikic/php-parser:5.3.1 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires nikic/php-parser ^5.3.1, found nikic/php-parser[v5.3.1] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - ocramius/code-generator-utils is locked to version 1.7.0 and an update of this package was not requested.
    - ocramius/code-generator-utils 1.7.0 requires nikic/php-parser ^4.15.3 -> found nikic/php-parser[v4.15.3, ..., v4.19.4] but it conflicts with your root composer.json require (^5.3.1).
  Problem 3
    - vimeo/psalm is locked to version 5.13.1 and an update of this package was not requested.
    - vimeo/psalm 5.13.1 requires nikic/php-parser ^4.14 -> found nikic/php-parser[v4.14.0, ..., v4.19.4] but it conflicts with your root composer.json require (^5.3.1).
  Problem 4
    - phpunit/phpunit is locked to version 9.6.10 and an update of this package was not requested.
    - phpunit/php-code-coverage 9.2.26 requires nikic/php-parser ^4.15 -> found nikic/php-parser[v4.15.0, ..., v4.19.4] but it conflicts with your root composer.json require (^5.3.1).
    - phpunit/phpunit 9.6.10 requires phpunit/php-code-coverage ^9.2.13 -> satisfiable by phpunit/php-code-coverage[9.2.26].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch from 998c8ba to 0cb6281 Compare September 15, 2024 16:50
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch from 0cb6281 to b4b1e54 Compare September 29, 2024 15:54
| datasource | package          | from   | to    |
| ---------- | ---------------- | ------ | ----- |
| packagist  | nikic/php-parser | 4.16.0 | 5.3.1 |
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch from b4b1e54 to 6060064 Compare October 8, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants