779b6950 | 20-May-2023 |
Nikita Popov |
Fix coding style |
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 ...
|
bb4263ea | 05-Mar-2023 |
Nikita Popov |
Treat del as label character depending on PHP version In formatting-preserving pretty printing, treat DEL as a label character based on the target PHP version (the default of 7.1 imp
Treat del as label character depending on PHP version In formatting-preserving pretty printing, treat DEL as a label character based on the target PHP version (the default of 7.1 implying it isn't one). This avoids failure to round-trip an unchanged input.
show more ...
|
4ce0de2d | 05-Mar-2023 |
Nikita Popov |
Use PHP 7.1 as default pretty printer target |
a3bc900a | 05-Mar-2023 |
Nikita Popov |
Don't ltrim when preserving formatting We shouldn't ltrim when printing a whole file, that way we will not just fail to preserve formatting, but actually change semantics by dropping
Don't ltrim when preserving formatting We shouldn't ltrim when printing a whole file, that way we will not just fail to preserve formatting, but actually change semantics by dropping meaningful whitespace.
show more ...
|
7785d2b8 | 05-Mar-2023 |
Nikita Popov |
Remove garbage collection section from docs The GC issue has been fixed in PHP 7.3 and is no longer relevant. |
aa721520 | 05-Mar-2023 |
Nikita Popov |
Don't generate braces for "else if" Mentioned in #915. |
da65ae47 | 05-Mar-2023 |
Nikita Popov |
Release PHP-Parser 5.0.0 alpha 2 |
8fb71684 | 05-Mar-2023 |
Nikita Popov |
Update upgrading documentation |
b9974596 | 04-Mar-2023 |
Nikita Popov |
Update changelog |
64484a49 | 04-Mar-2023 |
Anthony Ferrara |
Add PrettyPrinter interface Closes #423. |
a0ed229b | 04-Mar-2023 |
Nikita Popov |
Revert "Rename PrettyPrinterAbstract to PrettyPrinter" This reverts commit 2217f14d6e039f1c0572329e6fcc99f6c17178a3. |
12860599 | 04-Mar-2023 |
Nikita Popov |
Set allowed exceptions in fuzzer |
698ff1ca | 04-Mar-2023 |
Nikita Popov |
Don't always omit parentheses for argument-less yield We may need parentheses around an argument-less yield to distinguish (yield) - $a from yield -$a and similar. Treat argumen
Don't always omit parentheses for argument-less yield We may need parentheses around an argument-less yield to distinguish (yield) - $a from yield -$a and similar. Treat argument-less yield like a prefix operator. This will print parentheses a bit more often than is really required, because the arity ambiguity only exists for certain operators. This seems like a reasonably good approximation through, as it only affects argument-less yield on the LHS of infix operators.
show more ...
|
7877e030 | 04-Mar-2023 |
Nikita Popov |
Handle group use special case in fuzzer Same as for normal use. |
b3158e0b | 04-Mar-2023 |
Nikita Popov |
Respect namespace style for enum scalar type printing Doesn't matter in any practical sense because such types are always invalid, but makes sure pretty printing round-trips. |
bbec9db6 | 01-Mar-2023 |
Nikita Popov |
Handle overflowing \u escape sequence |
a4728678 | 01-Mar-2023 |
Nikita Popov |
Don't skip tests with evaluate segment when generating corpus This code was adopted from test updating, but in this context we're fine with just evaluating these. |
6649012e | 01-Mar-2023 |
Nikita Popov |
Produce error if <?= used as identifier Due to a peculiarity of how <?= is handled, it can get treated as an echo identifier. Make sure it isn't, to match PHP behavior. |
2217f14d | 01-Mar-2023 |
Nikita Popov |
Rename PrettyPrinterAbstract to PrettyPrinter |
c62dda95 | 01-Mar-2023 |
Nikita Popov |
Strip trailing doc string newline before parsing escape sequences If the doc string ends on an escaped \r, it should not get eaten as the "last newline". |
4c3e759a | 01-Mar-2023 |
Nikita Popov |
Support parsing from stdin in php-parse Following the usual convention, read from stdin if the file name is "-". |
f8fea099 | 27-Feb-2023 |
Nikita Popov |
Detect another special case in fuzzer |
57d4a026 | 27-Feb-2023 |
Nikita Popov |
Handle isolated \r in doc string Doc strings have a trailing \n and these will get interpreted as \r\n and removed from the string contents. For nowdoc, fall back to single quot
Handle isolated \r in doc string Doc strings have a trailing \n and these will get interpreted as \r\n and removed from the string contents. For nowdoc, fall back to single quote if there's a trailing \r. For heredoc, escape all isolated \r -- unlike \n and \r\n this is really a special character, because this is no longer relevant as an actual newline character.
show more ...
|