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 #758

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 7, 2024

This PR contains the following updates:

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

Release Notes

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

v5.4.0

Compare Source

Added
  • Added Property::isAbstract() and Property::isFinal() methods.
  • Added PropertyHook::isFinal() method.
  • Emit an error if property hook is used on declaration with multiple properties.
Fixed
  • Make legacy class aliases compatible with classmap-authoritative autoloader.
  • Param::isPromoted() and Param::isPublic() now returns true for parameters that have property
    hooks but no explicit visibility modifier.
  • PropertyHook::getStmts() now correctly desugars short set hooks. set => $value will be
    expanded to set { $this->propertyName = $value; }. This requires the propertyName attribute
    on the hook to be set, which is now also set by the parser. If the attribute is not set,
    getStmts() will throw an error for short set hooks, as it is not possible to produce a correct
    desugaring.

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.

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.

Copy link
Contributor Author

renovate bot commented Jan 7, 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
    - roave/better-reflection is locked to version 6.26.0 and an update of this package was not requested.
    - roave/better-reflection 6.26.0 requires nikic/php-parser ^4.18.0 -> found nikic/php-parser[v4.18.0, v4.19.0, v4.19.1] but it conflicts with your root composer.json require (^5.0.2).
  Problem 3
    - vimeo/psalm is locked to version 5.23.1 and an update of this package was not requested.
    - vimeo/psalm 5.23.1 requires nikic/php-parser ^4.16 -> found nikic/php-parser[v4.16.0, ..., v4.19.1] but it conflicts with your root composer.json require (^5.0.2).
  Problem 4
    - vimeo/psalm 5.23.1 requires nikic/php-parser ^4.16 -> found nikic/php-parser[v4.16.0, ..., v4.19.1] but it conflicts with your root composer.json require (^5.0.2).
    - roave/infection-static-analysis-plugin 1.35.0 requires vimeo/psalm ^4.30.0 || ^5.15 -> satisfiable by vimeo/psalm[5.23.1].
    - roave/infection-static-analysis-plugin is locked to version 1.35.0 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 added the renovate label Jan 7, 2024
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch 3 times, most recently from 16b5ce7 to ea76028 Compare February 8, 2024 19:24
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch from ea76028 to ffb9f0b Compare February 21, 2024 22:09
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch from ffb9f0b to 3e19814 Compare March 5, 2024 23:28
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch from 3e19814 to 2000f4f Compare March 13, 2024 16:46
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch from 2000f4f to 320d35c Compare April 11, 2024 19:35
@renovate renovate bot changed the base branch from 8.7.x to 8.8.x April 11, 2024 22:21
Copy link
Contributor Author

renovate bot commented May 22, 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.4.0 --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.4.0, found nikic/php-parser[v5.4.0] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - roave/better-reflection is locked to version 6.26.0 and an update of this package was not requested.
    - roave/better-reflection 6.26.0 requires nikic/php-parser ^4.18.0 -> found nikic/php-parser[v4.18.0, ..., v4.19.4] but it conflicts with your root composer.json require (^5.4.0).
  Problem 3
    - vimeo/psalm is locked to version 5.26.1 and an update of this package was not requested.
    - vimeo/psalm 5.26.1 requires nikic/php-parser ^4.17 -> found nikic/php-parser[v4.17.0, ..., v4.19.4] but it conflicts with your root composer.json require (^5.4.0).
  Problem 4
    - roave/infection-static-analysis-plugin is locked to version 1.35.0 and an update of this package was not requested.
    - roave/infection-static-analysis-plugin 1.35.0 requires vimeo/psalm ^4.30.0 || ^5.15 -> satisfiable by vimeo/psalm[5.26.1].
    - vimeo/psalm 5.26.1 requires nikic/php-parser ^4.17 -> found nikic/php-parser[v4.17.0, ..., v4.19.4] but it conflicts with your root composer.json require (^5.4.0).

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 4 times, most recently from 1f3725a to c99ce55 Compare May 22, 2024 19:10
@renovate renovate bot changed the base branch from 8.8.x to 8.9.x May 22, 2024 19:11
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch 8 times, most recently from cbdf98b to e0dc158 Compare May 30, 2024 03:51
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch 6 times, most recently from a72dc4c to e521e41 Compare June 5, 2024 04:54
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch 7 times, most recently from fe70898 to 6d6173b Compare December 3, 2024 03:54
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch 9 times, most recently from e3a7ec5 to 0812950 Compare December 11, 2024 04:59
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch 6 times, most recently from fc62f04 to 5fdd5bd Compare December 18, 2024 05:35
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch 4 times, most recently from 4d01580 to 01e1ea8 Compare December 24, 2024 03:10
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch 2 times, most recently from 58f145a to 3ce6890 Compare December 28, 2024 03:42
| datasource | package          | from   | to    |
| ---------- | ---------------- | ------ | ----- |
| packagist  | nikic/php-parser | 4.19.4 | 5.4.0 |
@renovate renovate bot force-pushed the renovate/nikic-php-parser-5.x branch from 3ce6890 to 9dc8055 Compare December 30, 2024 13:06
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