History log of /PHP-Parser/test/PhpParser/BuilderHelpersTest.php (Results 1 – 12 of 12)
Revision Date Author Comments
# d57da64d 31-May-2024 Jorg Adam Sowa

Add missing void return types (#997)


# c23976a2 20-May-2023 Nikita Popov

Stop accepting strings as types

For types the use of a string is ambiguous -- it could be either
an Identifier or a Name. Don't guess.

Retain the implicit promotion to Identifie

Stop accepting strings as types

For types the use of a string is ambiguous -- it could be either
an Identifier or a Name. Don't guess.

Retain the implicit promotion to Identifier in places where only
Identifier is legal, e.g. various symbol names.

show more ...


# 23835d20 03-Sep-2022 Nikita Popov

Rename Scalar\LNumber to Scalar\Int_


# 66b20bd6 03-Sep-2022 Nikita Popov

Rename Scalar\DNumber to Scalar\Float_


# 8be56afd 02-Sep-2022 Nikita Popov

Rename Expr\ArrayItem to ArrayItem

Array items are not expressions by themselves.


# a5033e38 29-Aug-2022 Nikita Popov

Format tests as well

The unnecessary parentheses for "new" are a bit annoying, but I
can live with it...


# 71ed641c 19-Jun-2022 Nikita Popov

Handle true/false/null types in builder APIs


# ace6c67a 02-Sep-2021 Nikita Popov

Add support for intersection types


# 0483391a 02-Sep-2021 Nikita Popov

Introduce ComplexType base class

With the upcoming addition of intersection types, a type can
be Identifier|Name|NullableType|UnionType|IntersectionType, which
is quite the mouthful.

Introduce ComplexType base class

With the upcoming addition of intersection types, a type can
be Identifier|Name|NullableType|UnionType|IntersectionType, which
is quite the mouthful. Give NullableType and UnionType a common
base class ComplexType, which does not have any behavior, but
allows to write these types (and check them in instanceof) more
easily.

show more ...


# c35cc4b2 18-Jun-2021 simivar

Add support for "never" type in the BuilderHelpers::normalizeType()


# 0b258d9a 17-Jun-2021 simivar

Add missing tests for methods of BuilderHelpers


# 49e9951f 16-Jun-2021 Krystian Marcisz

Add addAttribute() method to Builders with normalizer (#782)

Adds addAttribute() method to Builders of all nodes supporting attributes with BuilderHelpers::normalizeAttribute() usage inside

Add addAttribute() method to Builders with normalizer (#782)

Adds addAttribute() method to Builders of all nodes supporting attributes with BuilderHelpers::normalizeAttribute() usage inside so we can pass both Node\Attribute and Node\AttributeGroup instances.

show more ...