History log of /PHP-Parser/lib/PhpParser/Lexer/TokenEmulator/ReverseEmulator.php (Results 1 – 6 of 6)
Revision Date Author Comments
# 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 ...


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


# 1e89658c 23-Jul-2022 Nikita Popov

Add PhpVersion class


# de4ac930 04-Jul-2022 MathiasReker

Single blank line at eof

A PHP file without end tag must always end with a single empty line feed.


# 75abbbd2 06-Sep-2020 Nikita Popov

Handle flexible heredoc via TokenEmulator

Extend the interface to support preprocessing.


# 39b04600 06-Sep-2020 Nikita Popov

Refactor token emulator registration

Only determine needed emulators based on PHP version once, and
add an adaptor that allows treating forward and reverse emulation
the same.

Refactor token emulator registration

Only determine needed emulators based on PHP version once, and
add an adaptor that allows treating forward and reverse emulation
the same.

Previously the isEmulationNeeded() check was too conservative,
as it also considered emulators that are not relevant for the
version. Though possibly that check should just be dropped
altogether.

show more ...