13549aa7 | 03-Sep-2021 |
Nikita Popov |
Add support for first-class callables I'm somewhat unsure about the AST structure here. VariadicPlaceholder is not a general expression. Maybe Arg->expr should be Expr|VariadicPlaceh
Add support for first-class callables I'm somewhat unsure about the AST structure here. VariadicPlaceholder is not a general expression. Maybe Arg->expr should be Expr|VariadicPlaceholder? Or possibly the call arguments should be an array of Arg|VariadicPlaceholder?
show more ...
|
d2c645f1 | 03-Sep-2021 |
Nikita Popov |
Adjust token count in octal emulator |
def24f22 | 03-Sep-2021 |
Nikita Popov |
Add support for explicit octal literals |
cfeb1952 | 03-Sep-2021 |
Nikita Popov |
Add test for new in initializer This already works because we don't validate initializer contents, everything is accepted from a parser perspective. |
ace6c67a | 02-Sep-2021 |
Nikita Popov |
Add support for intersection 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 ...
|
9aebf377 | 08-Aug-2021 |
Nikita Popov |
Allow multiple modifiers for property promotion Fixes issue #800. |
5a430154 | 18-Jun-2021 |
simivar |
Simplify BuilderHelpers::normalizeName() implementation In order to get rid of the flag in `BuilderHelpers::normalizeNameCommon()` I have moved all the logic related to the normalization of
Simplify BuilderHelpers::normalizeName() implementation In order to get rid of the flag in `BuilderHelpers::normalizeNameCommon()` I have moved all the logic related to the normalization of the name to the `BuilderHelpers::normalizeName()` method and expr-related stuff to the `BuilderHelpers::normalizeNameOrExpr()` method which later calls the basic `normalizeName()` as well
show more ...
|
6608f016 | 21-Jul-2021 |
Nikita Popov |
Release PHP-Parser 4.12.0 |
55c42692 | 21-Jul-2021 |
Máté Kocsis |
Add support for new PHP 8.1 modifiers (#796) Implement support for readonly properties (https://wiki.php.net/rfc/readonly_properties_v2) and final class contstants (https://wiki.php.net/
Add support for new PHP 8.1 modifiers (#796) Implement support for readonly properties (https://wiki.php.net/rfc/readonly_properties_v2) and final class contstants (https://wiki.php.net/rfc/final_class_const).
show more ...
|
c4304c76 | 21-Jul-2021 |
Nikita Popov |
Try to pass --ignore-platform-req=php on 8.1 only |
b099e8fc | 21-Jul-2021 |
Nikita Popov |
Pass --ignore-platform-req=php |
acf16edc | 21-Jul-2021 |
Nikita Popov |
Add PHP 8.1 to GH actions |
a8b5ed43 | 21-Jul-2021 |
Nikita Popov |
Fix JSON encoding test on PHP 8.1 Duplicate the test expectation for a different order. |
c758510a | 09-Jul-2021 |
Nikita Popov |
Add support for PHP 8.1 With the introduction of intersection types, PHP now lexes the token '&' either as T_AMPERSAND_(NOT_)FOLLOWED_BY_VAR_OR_VARARG. This completely breaks parsing
Add support for PHP 8.1 With the introduction of intersection types, PHP now lexes the token '&' either as T_AMPERSAND_(NOT_)FOLLOWED_BY_VAR_OR_VARARG. This completely breaks parsing of any code containing '&'. Fix this by canonicalizing to the new token format (unconditionally, independent of emulation) and adjusting the parser to use the two new tokens. This doesn't add actual support for intersection types yet.
show more ...
|
feed91cf | 09-Jul-2021 |
Nikita Popov |
Avoid ctype_alnum() on integer This is deprecated in PHP 8.1 |
fe14cf36 | 03-Jul-2021 |
Nikita Popov |
Release PHP-Parser 4.11.0 |
3fb73520 | 03-Jul-2021 |
Bob Weinand |
Add handling for Enum(Case)s in NameResolver |
c35cc4b2 | 18-Jun-2021 |
simivar |
Add support for "never" type in the BuilderHelpers::normalizeType() |
e69ebbbf | 03-May-2021 |
Rod Elias |
chore: use the word Xdebug instead of XDebug |
0b258d9a | 17-Jun-2021 |
simivar |
Add missing tests for methods of BuilderHelpers |
2d193bb0 | 16-Jun-2021 |
simivar |
Add attributes to integration Builder test |
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 ...
|
eccf1bf4 | 14-Jun-2021 |
Krystian Marcisz |
Add Attribute builder and support for named args (#781) Add BuilderFactory::attribute() and support named args in BuilderFactory::args(). |
b67560d3 | 04-May-2021 |
Tom Klingenberg <352517+ktomk@users.noreply.github.com> |
Update CHANGELOG.md very minor for the year. |