History log of /PHP-Parser/lib/PhpParser/Builder/Class_.php (Results 1 – 23 of 23)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# ab51e9d3 17-Sep-2023 Nikita Popov

Remove superfluous phpdoc tags

These just specify a type that is already specified as a real PHP
type.


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


# 8ad41294 14-Dec-2022 Markus Staab

Declare list types (#907)

Closes #905


# 4c4af21d 14-Dec-2022 Markus Staab

Rewrote overly magic code to make it readable (#906)

New code inspired by https://github.com/nikic/PHP-Parser/blob/950bf8f1d1865cfd0d248e13a3455db0be1d870c/lib/PhpParser/Builder/Trait_.php#

Rewrote overly magic code to make it readable (#906)

New code inspired by https://github.com/nikic/PHP-Parser/blob/950bf8f1d1865cfd0d248e13a3455db0be1d870c/lib/PhpParser/Builder/Trait_.php#L43

show more ...


# 6af20446 11-Sep-2022 Nikita Popov

Add some missing property types


# 48f470ea 11-Sep-2022 Nikita Popov

Add missing return types


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


# f62b2bfd 28-Aug-2022 Nikita Popov

Introduce separate Modifiers class

Use PhpParser\Modifiers::PUBLIC instead of
PhpParser\Node\Stmt\Class_::MODIFIER_PUBLIC, etc. Old constants
of course remain available.

Fix

Introduce separate Modifiers class

Use PhpParser\Modifiers::PUBLIC instead of
PhpParser\Node\Stmt\Class_::MODIFIER_PUBLIC, etc. Old constants
of course remain available.

Fixes #476.

show more ...


# 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


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


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, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v3.1.5, v4.0.0beta1, v3.1.4
# 68d07c46 10-Jan-2018 Gabriel Caruso

[CS] New line in the end of file


Revision tags: v4.0.0alpha3, v3.1.3
# 0bb74e03 12-Nov-2017 Nikita Popov

Drop two more getType() usages in builders


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

Add strict_types to lib code


# ec535ea1 13-Aug-2017 TomasVotruba

[cs] use PHP 5.4 short array, since PHP 7.0 is min version


Revision tags: v3.1.0, v3.0.6
# a32e3797 28-Apr-2017 Nikita Popov

Generate PHP 7 type annotations


# e4f493cd 24-Apr-2017 Nikita Popov

Replace func_get_args() with variadics

We're on PHP 5.6 now, so can do this...


# 7419649e 24-Apr-2017 Nikita Popov

Change BuilderAbstract into BuilderHelpers static class

Used as poor man's function namespace here.


# 6b6c9035 24-Apr-2017 Nikita Popov

Kill the BuilderAbstract::$flags property

Instead pass and return the flags explicitly.


Revision tags: v3.0.5, v3.0.4, v3.0.3, v3.0.2, v3.0.1, v3.0.0, v3.0.0beta2, v3.0.0beta1, v2.1.1, v3.0.0alpha1
# 18129480 25-Jul-2016 Nikita Popov

Rename $type subnode to $flags

Type makes it sound like a type-hint, and on a number of other nodes
$type is used for exactly that. Use $flags to hold modifiers instead.


Revision tags: v2.1.0, v2.0.1
# 65af37f7 20-Feb-2016 Nikita Popov

Doc comment tweaks


Revision tags: v2.0.0, v2.0.0beta1, v1.4.1, v2.0.0alpha1, v1.4.0, v1.3.0, v1.2.2, v1.2.1, v1.2.0, v1.1.0
# 55fdbc6d 19-Dec-2014 Nikita Popov

Extract common builder methods to abstract classes

Declaration for fns/classes in general and FunctionLike for
functions/methods in particular.


# 24388484 13-Dec-2014 Nikita Popov

Add support for doc comments in builders


Revision tags: v1.0.2, v1.0.1, v1.0.0, v1.0.0beta2, v0.9.5
# c341ab2e 02-Apr-2014 Nikita Popov

Make autoloader for new names PSR-0 compliant