History log of /PHP-Parser/lib/PhpParser/BuilderHelpers.php (Results 1 – 25 of 30)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 6a970612 10-Aug-2024 Ruud Kamphuis

Normalize enum value to ClassConstFetch

Fixes #930

(cherry picked from commit 8a21ec3182533ee6448a4efb8d238a4163b89297)


# 2d3dd4e2 17-Sep-2023 Nikita Popov

Don't align phpdoc tags

I did this to start with, but then alignment kept being broken
during refactorings, and at some point I switched to not aligning,
and now we have a big mess.

Don't align phpdoc tags

I did this to start with, but then alignment kept being broken
during refactorings, and at some point I switched to not aligning,
and now we have a big mess.

Add a php-cs-fixer rule to consistently not align phpdoc tags.

show more ...


# 031c5e6e 11-Sep-2022 Nikita Popov

Move verifyModifier/verifyClassModifier to Modifiers class

Now that the Modifiers are in a separate class, these *internal*
verification methods should also be moved there.


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


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


# 71ed641c 19-Jun-2022 Nikita Popov

Handle true/false/null types in builder APIs


# 678ccbe0 15-May-2022 Tomas Votruba

[PHP 8.2] Add readonly class support (#834)

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

PHP implementation: php/php-src#7305


# 0a20979a 14-Sep-2021 Jaroslav Hanslík

Unified builder methods for setting types


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


# 5a430154 18-Jun-2021 simivar

Simplify BuilderHelpers::normalizeName() implementation

In order to get rid of the flag in `BuilderHelpers::normalizeNameCommon()` I have moved all the logic related to the normalization of

Simplify BuilderHelpers::normalizeName() implementation

In order to get rid of the flag in `BuilderHelpers::normalizeNameCommon()` I have moved all the logic related to the normalization of the name to the `BuilderHelpers::normalizeName()` method and expr-related stuff to the `BuilderHelpers::normalizeNameOrExpr()` method which later calls the basic `normalizeName()` as well

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


# 32f89662 28-May-2020 Máté Kocsis

Add support for the mixed type


# 88f3a669 17-Nov-2019 Tomáš Votruba

Add union type to ParamBuilder and BuilderHelpers


Revision tags: v4.3.0, v4.2.5, v4.2.4, v4.2.3, v4.2.2, v4.2.1, v4.2.0, v4.1.1, v4.1.0, v4.0.4
# 0cd7207c 20-Jul-2018 Nikita Popov

Add tests for var() and propertyFetch()


Revision tags: v4.0.3, v4.0.2, v4.0.1
# ff2d85dc 03-Mar-2018 Nikita Popov

Add constFetch() and classConstFetch() builders


# b998d1e9 03-Mar-2018 Nikita Popov

Add funcCall(), methodCall() and staticCall() builders


Revision tags: v4.0.0, v3.1.5, v4.0.0beta1, v3.1.4
# 7f72c841 10-Jan-2018 Gabriel Caruso

[CS] Open class brackets in new line


# 5285df8f 13-Jan-2018 Nikita Popov

[CS] Use elseif instead of else if

Conflicts:
lib/PhpParser/TokenStream.php


Revision tags: v4.0.0alpha3, v3.1.3, v4.0.0alpha2, v3.1.2, v4.0.0alpha1, v3.1.1
# e2e99f26 18-Aug-2017 TomasVotruba

Add strict_types to lib code


# 05e6725b 13-Aug-2017 TomasVotruba

[cs] use strict comparison where allowed


12