263fa80b | 14-Sep-2023 |
Markus Staab |
Use more precise Use_::TYPE_* types (#945) For better static analysis support in consuming projects. |
5da5231f | 27-Aug-2023 |
Nikita Popov |
Indent heredoc/nowdoc when targeting PHP >= 7.3 |
8d583801 | 27-Aug-2023 |
Nikita Popov |
Default pretty printer to PHP 7.4 |
efe93a17 | 17-Aug-2023 |
Nikita Popov |
Update PHP versions in workflow |
ea778075 | 17-Aug-2023 |
Nikita Popov |
Add more property types Some of these are not maximally accurate due to lack of union types. |
9a68468f | 16-Aug-2023 |
Nikita Popov |
Update phpstan baseline |
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 ...
|
3c0432b0 | 16-Aug-2023 |
Nikita Popov |
Remove emulation for unsupported PHP versions |
ee3e7db3 | 16-Aug-2023 |
Nikita Popov |
Raise minimum PHP version to PHP 7.4 |
ba851243 | 13-Aug-2023 |
Nikita Popov |
Replace startLexing() with tokenize() For now Lexer::getTokens() still exists, but should probably be removed. |
d1d784a5 | 13-Aug-2023 |
Nikita Popov |
Fixup line numbers when applying emulator patches This fixes the test failures on PHP 7.2. |
62853b17 | 13-Aug-2023 |
Nikita Popov |
Fix PhpStan errors |
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 ...
|
b20267c5 | 09-Jul-2023 |
Nikita Popov |
Make use of default actions For the default action $$ = $1, save the closure invocation. |
748aab33 | 09-Jul-2023 |
Nikita Popov |
Don't set start attributes for whitespace These will get overwritten later anyway. |
c48ee36f | 09-Jul-2023 |
Nikita Popov |
Allow passing visitors to NodeTraverser constructor |
8b137199 | 02-Jul-2023 |
Nikita Popov |
Minor documentation updates |
eaa1d91b | 25-Jun-2023 |
Abdul Malik Ikhsan |
Early return false after VariadicPlaceholder check on CallLike::isFirstClassCallable() (#924) VariadicPlaceholder can only occur as the first (and only) argument, so avoid a loop to check fo
Early return false after VariadicPlaceholder check on CallLike::isFirstClassCallable() (#924) VariadicPlaceholder can only occur as the first (and only) argument, so avoid a loop to check for it.
show more ...
|
3fb4b92f | 13-Jun-2023 |
Danny van der Sluijs |
Update main.yml to use GitHub Actions V3 Updates the GitHub Actions from V2 to V3 (cherry picked from commit 1d0748ad35201d483816634dd4bfe55a6f26d857) |
571ca90b | 24-Jun-2023 |
Nikita Popov |
Release PHP-Parser 5.0.0-alpha3 |
16c766ea | 28-May-2023 |
Nikita Popov |
Don't take subnodes by reference when traversing Explicitly assign the property where necessary to avoid the creation of unnecessary reference-wrappers everywhere. |
53f67173 | 28-May-2023 |
Nikita Popov |
Remove unnecessary Node return value from traverseNode() The node always stays the same: We may only change subnodes. |
5b65f9fc | 27-May-2023 |
Nikita Popov |
Some documentation updates |
69993a18 | 21-May-2023 |
Nikita Popov |
Update CHANGELOG and UPGRADING |
23647573 | 21-May-2023 |
Nikita Popov |
Represent names using string rather than array of parts In most circumstances we are interested in the whole string, not the parts split by namespace separator. As names are common, this
Represent names using string rather than array of parts In most circumstances we are interested in the whole string, not the parts split by namespace separator. As names are common, this representation measurably improves memory usage and performance.
show more ...
|