History log of /PHP-Parser/lib/PhpParser/Internal/TokenPolyfill.php (Results 1 – 7 of 7)
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 ...


# 3c0432b0 16-Aug-2023 Nikita Popov

Remove emulation for unsupported PHP versions


# fc6b4890 11-Sep-2022 Nikita Popov

Specify more types


# 9b5a2c89 11-Sep-2022 Nikita Popov

Use PHPStan level 5


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


# 472e163f 05-Jun-2022 Nikita Popov

Use extends instead of class_alias

Apparently we can't alias an internal class.


# aff98bbf 04-Jun-2022 Nikita Popov

Use PHP 8.0 token representation

Migrate everything to use PhpToken-compatible token representation,
rather than the legacy array/string representation.