#
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 ...
|
#
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 ...
|
#
b68fb76f |
| 19-May-2023 |
Nikita Popov |
Add makeReadonly() to param builder (cherry picked from commit 11e2dcd96c830ee934fa7b0243f4d67d8a8821ab)
|
#
36a6dcd0 |
| 06-Mar-2023 |
Cees-Jan Kiewiet |
[5.x] Add constructor property promotion By making flags on the Param builder configurable by providing make(Public|Protected|Private) methods we can promote parameters to properties from th
[5.x] Add constructor property promotion By making flags on the Param builder configurable by providing make(Public|Protected|Private) methods we can promote parameters to properties from the constructor
show more ...
|
#
8ad41294 |
| 14-Dec-2022 |
Markus Staab |
Declare list types (#907) Closes #905
|
#
6af20446 |
| 11-Sep-2022 |
Nikita Popov |
Add some missing property types
|
#
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 ...
|
#
3fd30f64 |
| 12-Jun-2022 |
Nikita Popov |
Remove deprecated param builder method
|
#
0a20979a |
| 14-Sep-2021 |
Jaroslav Hanslík |
Unified builder methods for setting types
|
#
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 ...
|
#
49e9951f |
| 16-Jun-2021 |
Krystian Marcisz |
Add addAttribute() method to Builders with normalizer (#782) Adds addAttribute() method to Builders of all nodes supporting attributes with BuilderHelpers::normalizeAttribute() usage inside
Add addAttribute() method to Builders with normalizer (#782) Adds addAttribute() method to Builders of all nodes supporting attributes with BuilderHelpers::normalizeAttribute() usage inside so we can pass both Node\Attribute and Node\AttributeGroup instances.
show more ...
|
#
88f3a669 |
| 17-Nov-2019 |
Tomáš Votruba |
Add union type to ParamBuilder and BuilderHelpers
|
Revision tags: v4.3.0 |
|
#
5b1cd2e4 |
| 02-Nov-2019 |
Nikita Popov |
Fix phpdoc for Param\Builer::$type
|
Revision tags: v4.2.5, v4.2.4, v4.2.3, v4.2.2, v4.2.1, v4.2.0, v4.1.1, v4.1.0, v4.0.4 |
|
#
41408081 |
| 22-Jul-2018 |
Nikita Popov |
Rename setTypeHint() to setType() To align with modern terminology -- we don't like calling these type hints anymore. Old method name remains, marked as @deprecated.
|
Revision tags: v4.0.3, v4.0.2, v4.0.1, v4.0.0, v3.1.5, v4.0.0beta1, v3.1.4, v4.0.0alpha3, v3.1.3, v4.0.0alpha2, v3.1.2, v4.0.0alpha1, v3.1.1 |
|
#
e2e99f26 |
| 18-Aug-2017 |
TomasVotruba |
Add strict_types to lib code
|
Revision tags: v3.1.0, v3.0.6 |
|
#
a32e3797 |
| 28-Apr-2017 |
Nikita Popov |
Generate PHP 7 type annotations
|
#
a6846e3b |
| 28-Apr-2017 |
Nikita Popov |
Always use Identifier nodes The parser will now always generate Identifier nodes (for non-namespaced identifiers). This obsoletes the useIdentifierNodes parser option. Node
Always use Identifier nodes The parser will now always generate Identifier nodes (for non-namespaced identifiers). This obsoletes the useIdentifierNodes parser option. Node constructors still accepts strings and will implicitly create an Identifier wrapper. Identifier implement __toString(), so that outside of strict-mode many things continue to work without changes.
show more ...
|
#
7419649e |
| 24-Apr-2017 |
Nikita Popov |
Change BuilderAbstract into BuilderHelpers static class Used as poor man's function namespace here.
|
#
c877c1a6 |
| 16-Apr-2017 |
SignpostMarv |
Add Builder\Param::makeVariadic()
|
Revision tags: v3.0.5, v3.0.4, v3.0.3 |
|
#
6238f5f9 |
| 19-Jan-2017 |
Nikita Popov |
Adjust code for constitent var mode
|
Revision tags: v3.0.2 |
|
#
030de805 |
| 05-Dec-2016 |
Matthew Brown |
Add NullableType to types of properties/args that offer it (#323)
|
Revision tags: v3.0.1, v3.0.0, v3.0.0beta2, v3.0.0beta1, v2.1.1 |
|
#
1ab24d26 |
| 16-Sep-2016 |
Nikita Popov |
Add support for PHP 7.1 types to builders This adds support for void, iterable and nullable types.
|
Revision tags: v3.0.0alpha1, v2.1.0 |
|
#
39f93f09 |
| 09-Apr-2016 |
lvht |
Add setReturnType() method to function/method builders Also support scalar type hints in existing setTypeHint() method on params.
|