History log of /PHP-Parser/lib/PhpParser/PrettyPrinter/Standard.php (Results 26 – 50 of 160)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# d24745dd 26-Feb-2023 Nikita Popov

Respect precedence during clone pretty printing

Clone is the prefix operator with the highest operator precedence,
but was not treated as an operator at all.


# f6ddde64 26-Feb-2023 Nikita Popov

Perform end label check on escaped string

Escaping might convert a label character into an escape sequence
if it is not valid UTF-8.


# 47626c74 26-Feb-2023 Nikita Popov

Handle interpolated variable after end label

Interpolated variables start with non-label characters, and as
such also count as end label terminators since PHP 7.3.


# ce3337b0 26-Feb-2023 Nikita Popov

Update allowed characters after doc string label

With the introduction of flexible doc strings, the ending label
is no longer required to be followed by a semicolon or newline.
We ne

Update allowed characters after doc string label

With the introduction of flexible doc strings, the ending label
is no longer required to be followed by a semicolon or newline.
We need to prevent doc string printing if the label is followed
by any non-label character.

show more ...


# d83562e6 26-Feb-2023 Nikita Popov

Print INF as 1.0E+1000

This makes pretty printing round trip to another Float literal,
rather than a constant lookup. The 1e1000 form in particular is
chosen because that seems to be

Print INF as 1.0E+1000

This makes pretty printing round trip to another Float literal,
rather than a constant lookup. The 1e1000 form in particular is
chosen because that seems to be the typical form used in various
tests.

show more ...


# 2df8878f 29-Jan-2023 Nikita Popov

[PHP 8.3] Support dynamic class const fetch

RFC: https://wiki.php.net/rfc/dynamic_class_constant_fetch


# 4bcdf74b 21-Sep-2022 Nikita Popov

Add support for perserving formatting for static modifier change

Closes GH-891.


# f98341f6 17-Sep-2022 Nikita Popov

Specify more types


# 43d6332d 11-Sep-2022 Nikita Popov

Add return types to PrettyPrinter\Standard


# b9fe3449 11-Sep-2022 Nikita Popov

Add missing parameter types


# f59f226f 11-Sep-2022 Nikita Popov

Fix some phpstan warnings


# 4917c71a 03-Sep-2022 Nikita Popov

Rename Stmt\UseUse to UseItem


# e1345f0c 03-Sep-2022 Nikita Popov

Rename Stmt\PropertyProperty to PropertyItem


# 03ccfa3d 03-Sep-2022 Nikita Popov

Rename Stmt\DeclareDeclare to DeclareItem


# a44faa63 03-Sep-2022 Nikita Popov

Rename Scalar\Encapsed to Scalar\InterpolatedString


# f4ec6a1e 03-Sep-2022 Nikita Popov

Rename Scalar\EncapsedStringPart to InterpolatedStringPart

It is no longer an expression node, which unfortunately does
require a more awkward type for the Encaps node.


# 23835d20 03-Sep-2022 Nikita Popov

Rename Scalar\LNumber to Scalar\Int_


# 66b20bd6 03-Sep-2022 Nikita Popov

Rename Scalar\DNumber to Scalar\Float_


# 035c1c7c 02-Sep-2022 Nikita Popov

Rename Stmt\StaticVar to StaticVar

This is part of a statement, not a statement by itself.


# 8be56afd 02-Sep-2022 Nikita Popov

Rename Expr\ArrayItem to ArrayItem

Array items are not expressions by themselves.


# 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 ...


# 68fc1ba4 28-Aug-2022 Nikita Popov

Always use List_ node for array destructuring

Fixes #471.


# 9b2a01aa 07-Aug-2022 George Peter Banyard

Add support for DNF types (#862)


# 652fb0c6 07-Aug-2022 Nikita Popov

Print trailing comma in param list if supported


# ea9d6b22 21-Jul-2022 Anton

Always use pMaybeMultiline() for function parameters

Closes GH-861.


1234567