#
e3f223f6 |
| 28-Jul-2024 |
Nikita Popov |
Fix expected json dump for old PHP versions
|
#
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 ...
|
#
daaadc3b |
| 03-Jun-2024 |
Jorg Adam Sowa |
Adjust tests to be compatible with PHPUnit 10 (#998) This avoids warnings on PHPUnit 10, without actually switching to PHPUnit 10.
|
#
d57da64d |
| 31-May-2024 |
Jorg Adam Sowa |
Add missing void return types (#997)
|
#
f603e193 |
| 07-Jan-2024 |
Nikita Popov |
Avoid PHPUnit deprecation warnings
|
#
acfccd9d |
| 01-Nov-2023 |
Nikita Popov |
Run with updated php-cs-fixer
|
#
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 ...
|
#
4b497045 |
| 29-Jul-2023 |
Nikita Popov |
Move attribute handling into parser The Lexer now only provides the tokens to the parser, while the parser is responsible for determining which attributes are placed on notes. This o
Move attribute handling into parser The Lexer now only provides the tokens to the parser, while the parser is responsible for determining which attributes are placed on notes. This only needs to be done when the attributes are actually needed, rather than for all tokens. This removes the usedAttributes lexer option (and lexer options entirely). The attributes are now enabled unconditionally. They have less overhead now, and the need to explicitly enable them for some use cases (e.g. formatting-preserving printing) doesn't seem like a good tradeoff anymore. There are some additional changes to the Lexer interface that should be done after this, and the docs / upgrading guide haven't been adjusted yet.
show more ...
|
#
748aab33 |
| 09-Jul-2023 |
Nikita Popov |
Don't set start attributes for whitespace These will get overwritten later anyway.
|
#
23835d20 |
| 03-Sep-2022 |
Nikita Popov |
Rename Scalar\LNumber to Scalar\Int_
|
#
66b20bd6 |
| 03-Sep-2022 |
Nikita Popov |
Rename Scalar\DNumber to Scalar\Float_
|
#
a5033e38 |
| 29-Aug-2022 |
Nikita Popov |
Format tests as well The unnecessary parentheses for "new" are a bit annoying, but I can live with it...
|
#
5d83adcc |
| 15-May-2022 |
Tomas Votruba |
[String_] Add rawValue attribute (#831)
|
#
3bf00824 |
| 15-May-2022 |
Tomas Votruba |
[DNumber] Add rawValue attribute to hold the original value (#833)
|
#
d3eb10ac |
| 15-May-2022 |
Tomas Votruba |
[LNumber] Add rawValue attribute to LNumber to allow numeric separator etc. (#832)
|
#
f09f2276 |
| 27-Nov-2021 |
Nikita Popov |
Declare namespacedName property For historical reasons, this property is used by the NameResolver (in default mode). Declare it explicitly, rather than using a doc comment.
|
#
d4cb98ae |
| 27-Nov-2021 |
Nikita Popov |
Fix typo in property name This test was working on a dynamic "subNode" property, rather than an actual subnode (either subNode1 or subNode2). This test is generally not very val
Fix typo in property name This test was working on a dynamic "subNode" property, rather than an actual subnode (either subNode1 or subNode2). This test is generally not very valuable, I think it dates back to a time where __get()/__set() were used.
show more ...
|
#
68d2a52b |
| 27-Nov-2021 |
Nikita Popov |
Avoid creation of dynamic property in test This test requires a property that is not a subnode -- but it does not need to be dynamic, a declared property works just as well.
|
#
a8b5ed43 |
| 21-Jul-2021 |
Nikita Popov |
Fix JSON encoding test on PHP 8.1 Duplicate the test expectation for a different order.
|
#
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 ...
|
#
4abc5312 |
| 27-Jun-2020 |
Nikita Popov |
Canonicalize to PHP 8 comment token format The trailing newline is no longer part of the comment token.
|
#
b58b19ed |
| 07-Jun-2020 |
TomasVotruba |
Add constructor promotion support
|
#
3ec87ef7 |
| 15-Feb-2020 |
Nikita Popov |
Don't require doc comment to be last comment Fixes #652.
|
#
602af906 |
| 09-Feb-2020 |
Nikita Popov |
Add end line / file position / token position to comments
|
Revision tags: v4.3.0, v4.2.5, v4.2.4, v4.2.3, v4.2.2, v4.2.1 |
|
#
b7e63615 |
| 19-Jan-2019 |
Lars Moelleken |
updates via "rectorphp/rector" (#573) - "global" -> remove unused "use" statements - "phpunit" -> fix "@covers" comments - "phpunit" -> replace "->will($this->returnValue()" with "->
updates via "rectorphp/rector" (#573) - "global" -> remove unused "use" statements - "phpunit" -> fix "@covers" comments - "phpunit" -> replace "->will($this->returnValue()" with "->willReturn()" - "UseTest.php" -> add missing namespace - "composer.json" -> use "autoload-dev" - remove -> "require_once" usage in the tests (use autoload-dev via composer.json) -> most of the changes are done automatically by "https://github.com/rectorphp/rector"
show more ...
|