#
b493c51c |
| 31-Aug-2024 |
Nikita Popov |
[8.4] Add support for asymmetric visibility modifiers Represented using new PRIVATE_SET, PROTECTED_SET and PUBLIC_SET bits in Modifiers. RFC: https://wiki.php.net/rfc/asymmetric
[8.4] Add support for asymmetric visibility modifiers Represented using new PRIVATE_SET, PROTECTED_SET and PUBLIC_SET bits in Modifiers. RFC: https://wiki.php.net/rfc/asymmetric-visibility-v2
show more ...
|
#
03caf4cc |
| 14-Jul-2024 |
Nikita Popov |
[8.4] Add support for property hooks Add hooks subnode to Stmt\Property and Param, which contains an array of PropertyHook. The property hook support is considered experimental
[8.4] Add support for property hooks Add hooks subnode to Stmt\Property and Param, which contains an array of PropertyHook. The property hook support is considered experimental and subject to change. RFC: https://wiki.php.net/rfc/property-hooks
show more ...
|
#
f4961b89 |
| 18-Sep-2023 |
RainX <101971+rainx@users.noreply.github.com> |
Add missing phpdoc annotations in AST nodes (#946)
|
#
ab51e9d3 |
| 17-Sep-2023 |
Nikita Popov |
Remove superfluous phpdoc tags These just specify a type that is already specified as a real PHP type.
|
#
ea778075 |
| 17-Aug-2023 |
Nikita Popov |
Add more property types Some of these are not maximally accurate due to lack of union types.
|
#
502b0909 |
| 16-Aug-2023 |
Nikita Popov |
Add property types Types omitted in two places where we violate them currently: Namespace_::$stmts can be null during parsing, and Enum_::$scalarType can be a complex type for invali
Add property types Types omitted in two places where we violate them currently: Namespace_::$stmts can be null during parsing, and Enum_::$scalarType can be a complex type for invalid programs.
show more ...
|
#
c23976a2 |
| 20-May-2023 |
Nikita Popov |
Stop accepting strings as types For types the use of a string is ambiguous -- it could be either an Identifier or a Name. Don't guess. Retain the implicit promotion to Identifie
Stop accepting strings as types For types the use of a string is ambiguous -- it could be either an Identifier or a Name. Don't guess. Retain the implicit promotion to Identifier in places where only Identifier is legal, e.g. various symbol names.
show more ...
|
#
8ad41294 |
| 14-Dec-2022 |
Markus Staab |
Declare list types (#907) Closes #905
|
#
a099803d |
| 11-Sep-2022 |
Nikita Popov |
Use array<string, mixed> type for $attributes Slightly more accurate, and stops PHPStan from complaining about the missing array type information.
|
#
205bd75a |
| 11-Sep-2022 |
Nikita Popov |
Add isPublic() etc methods on Param node Also isPromoted() to check for any flags.
|
#
36b2a996 |
| 19-Jul-2022 |
Christopher Hertel |
Add isReadonly on Param node
|
#
dd63ddbc |
| 28-Aug-2022 |
Nikita Popov |
Add php-cs-fixer config and reformat The formatting in this project has become something of a mess, because it changed over time. Add a CS fixer config and reformat to the desired st
Add php-cs-fixer config and reformat The formatting in this project has become something of a mess, because it changed over time. Add a CS fixer config and reformat to the desired style, which is PSR-12, but with sane brace placement.
show more ...
|
#
653757be |
| 04-Jul-2022 |
MathiasReker |
Nullable type declaration for default null value Adds ? before type declarations for parameters with a default null value
|
#
0483391a |
| 02-Sep-2021 |
Nikita Popov |
Introduce ComplexType base class With the upcoming addition of intersection types, a type can be Identifier|Name|NullableType|UnionType|IntersectionType, which is quite the mouthful.
Introduce ComplexType base class With the upcoming addition of intersection types, a type can be Identifier|Name|NullableType|UnionType|IntersectionType, which is quite the mouthful. Give NullableType and UnionType a common base class ComplexType, which does not have any behavior, but allows to write these types (and check them in instanceof) more easily.
show more ...
|
#
4c22c627 |
| 13-Sep-2020 |
Tomas Votruba |
[PHP 8.0] Add attributes support (#661) Adds support for PHP 8 attributes, represented using `AttrGroup` nodes containing `Attribute` nodes. The `attrGroup` subnode is added to all n
[PHP 8.0] Add attributes support (#661) Adds support for PHP 8 attributes, represented using `AttrGroup` nodes containing `Attribute` nodes. The `attrGroup` subnode is added to all nodes that can have attributes. This is still missing FPPP support. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
show more ...
|
#
b58b19ed |
| 07-Jun-2020 |
TomasVotruba |
Add constructor promotion support
|
Revision tags: v4.3.0 |
|
#
664c1012 |
| 25-Oct-2019 |
Nikita Popov |
Add support for union types We definitely need to introduce a general "Type" abstraction in the next major version.
|
Revision tags: v4.2.5, v4.2.4, v4.2.3, v4.2.2 |
|
#
993f2990 |
| 12-May-2019 |
Nikita Popov |
Avoid parent constructor call during node construction Instead explicitly assign the attributes. This is a minor performance improvement.
|
Revision tags: v4.2.1, v4.2.0 |
|
#
af8c7296 |
| 05-Jan-2019 |
Tomas Votruba |
Add PHP 7.4 typed properties support
|
Revision tags: v4.1.1, v4.1.0, v4.0.4, v4.0.3, v4.0.2 |
|
#
01e85a26 |
| 12-May-2018 |
Nikita Popov |
Support recovery for param without variable We store an Expr\Error for the variable in this case.
|
Revision tags: v4.0.1, v4.0.0, v3.1.5, v4.0.0beta1, v3.1.4 |
|
#
248b29ec |
| 10-Jan-2018 |
Gabriel Caruso |
Add public visibility to getType method (#463)
|
Revision tags: v4.0.0alpha3, v3.1.3 |
|
#
1c11626f |
| 12-Nov-2017 |
Nikita Popov |
Add explicit getType() methods Rather than automatically deriving getType() from the class name.
|
Revision tags: v4.0.0alpha2, v3.1.2, v4.0.0alpha1, v3.1.1 |
|
#
e2e99f26 |
| 18-Aug-2017 |
TomasVotruba |
Add strict_types to lib code
|
#
ec535ea1 |
| 13-Aug-2017 |
TomasVotruba |
[cs] use PHP 5.4 short array, since PHP 7.0 is min version
|
Revision tags: v3.1.0, v3.0.6 |
|
#
a32e3797 |
| 28-Apr-2017 |
Nikita Popov |
Generate PHP 7 type annotations
|