no-floaters
no-floaters copied to clipboard
Update dependency nikic/php-parser to v5
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
nikic/php-parser | ^4.17.1 -> ^5.3.1 |
Release Notes
nikic/PHP-Parser (nikic/php-parser)
v5.3.1
Added
- Added support for declaring functions with name
exit
ordie
, to allow their use in stubs.
v5.3.0
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
PropertyHook
s in theNameResolver
. - Include the trailing semicolon inside
Stmt\GroupUse
nodes, making them consistent withStmt\Use_
nodes. - Fixed indentation sometimes becoming negative in formatting-preserving pretty printer, resulting
in
ValueError
s.
v5.2.0
Added
- [8.4] Added support for
__PROPERTY__
magic constant, represented using aNode\Scalar\MagicConst\Property
node. - [8.4] Added support for property hooks, which are represented using a new
hooks
subnode onNode\Stmt\Property
andNode\Param
, which contains an array ofNode\PropertyHook
. - [8.4] Added support for asymmetric visibility modifiers. Property
flags
can now hold the additional bitsModifiers::PUBLIC_SET
,Modifiers::PROTECTED_SET
andModifiers::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 plainNode\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
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
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
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 toTypeError
s down the line. Now anError
will be thrown early to indicate the problem.
v5.0.0
See UPGRADE-5.0 for detailed migration instructions.
Fixed
- Fixed parent class of
PropertyItem
andUseItem
.
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.