History log of /PHP-Parser/test/code/parser/stmt/newInInitializer.test (Results 1 – 8 of 8)
Revision Date Author Comments
# 03caf4cc 14-Jul-2024 Nikita Popov

[8.4] Add support for property hooks

Add hooks subnode to Stmt\Property and Param, which contains an
array of PropertyHook.

The property hook support is considered experimental

[8.4] Add support for property hooks

Add hooks subnode to Stmt\Property and Param, which contains an
array of PropertyHook.

The property hook support is considered experimental and subject
to change.

RFC: https://wiki.php.net/rfc/property-hooks

show more ...


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


# 5c267f55 20-May-2023 Nikita Popov

Add support for typed constants

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


# e1345f0c 03-Sep-2022 Nikita Popov

Rename Stmt\PropertyProperty to PropertyItem


# f5b56a5c 03-Sep-2022 Nikita Popov

Remove MODIFIER_ prefix from node dumps

These constants are now called Modifiers::PUBLIC rather than
Class_::MODIFIER_PUBLIC etc, so update the dumped name as well.


# 035c1c7c 02-Sep-2022 Nikita Popov

Rename Stmt\StaticVar to StaticVar

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


# d3d1297c 06-Jun-2022 Nikita Popov

Remove PHP 5 parser


# cfeb1952 03-Sep-2021 Nikita Popov

Add test for new in initializer

This already works because we don't validate initializer contents,
everything is accepted from a parser perspective.