[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 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.
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 from 4.12.0 to 4.13.0.
Release notes
Sourced from nikic/php-parser's releases.
Changelog
Sourced from nikic/php-parser's changelog.
Commits
50953a2
Release PHP-Parser 4.13.00a20979
Unified builder methods for setting typesa45fb2a
Add CallLike parent class0850199
Don't make VariadicPlaceholder an expressionb5234ea
Tweak coding style632ead3
Print comma before comments for new array item (#805)13549aa
Add support for first-class callablesd2c645f
Adjust token count in octal emulatordef24f2
Add support for explicit octal literalscfeb195
Add test for new in initializerDependabot 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)