History log of /PHP-Parser/lib/PhpParser/NodeVisitor/NameResolver.php (Results 1 – 25 of 57)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 8d09ba87 17-Sep-2024 Nikita Popov

Support PropertyHooks in NameResolver


# f6665007 28-Nov-2023 Ondrej Mirtes

Fix NameResolver for class constant native type


# ab51e9d3 17-Sep-2023 Nikita Popov

Remove superfluous phpdoc tags

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


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


# 263fa80b 14-Sep-2023 Markus Staab

Use more precise Use_::TYPE_* types (#945)

For better static analysis support in consuming projects.


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


# 132690f2 17-Sep-2022 Nikita Popov

Slightly more precise type


# b3ad14b9 17-Sep-2022 Nikita Popov

Fix some types


# f98341f6 17-Sep-2022 Nikita Popov

Specify more types


# 48f470ea 11-Sep-2022 Nikita Popov

Add missing return types


# b9fe3449 11-Sep-2022 Nikita Popov

Add missing parameter types


# 4917c71a 03-Sep-2022 Nikita Popov

Rename Stmt\UseUse to UseItem


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


# 653757be 04-Jul-2022 MathiasReker

Nullable type declaration for default null value

Adds ? before type declarations for parameters with a default null value


# 9c5eb3cc 04-Jun-2022 Nikita Popov

Add some missing type annotations


# ace6c67a 02-Sep-2021 Nikita Popov

Add support for intersection types


# 3fb73520 03-Jul-2021 Bob Weinand

Add handling for Enum(Case)s in NameResolver


# 4c22c627 13-Sep-2020 Tomas Votruba

[PHP 8.0] Add attributes support (#661)

Adds support for PHP 8 attributes, represented using `AttrGroup` nodes
containing `Attribute` nodes. The `attrGroup` subnode is added to all
n

[PHP 8.0] Add attributes support (#661)

Adds support for PHP 8 attributes, represented using `AttrGroup` nodes
containing `Attribute` nodes. The `attrGroup` subnode is added to all
nodes that can have attributes.

This is still missing FPPP support.

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>

show more ...


Revision tags: v4.3.0
# 664c1012 25-Oct-2019 Nikita Popov

Add support for union types

We definitely need to introduce a general "Type" abstraction in
the next major version.


Revision tags: v4.2.5, v4.2.4, v4.2.3
# 624f71fa 04-Jun-2019 hoels <51371415+hoels@users.noreply.github.com>

Resolve return type of arrow functions (#613)


Revision tags: v4.2.2, v4.2.1
# b7e63615 19-Jan-2019 Lars Moelleken

updates via "rectorphp/rector" (#573)

- "global" -> remove unused "use" statements
- "phpunit" -> fix "@covers" comments
- "phpunit" -> replace "->will($this->returnValue()" with "->

updates via "rectorphp/rector" (#573)

- "global" -> remove unused "use" statements
- "phpunit" -> fix "@covers" comments
- "phpunit" -> replace "->will($this->returnValue()" with "->willReturn()"
- "UseTest.php" -> add missing namespace
- "composer.json" -> use "autoload-dev"
- remove -> "require_once" usage in the tests (use autoload-dev via composer.json)

-> most of the changes are done automatically by "https://github.com/rectorphp/rector"

show more ...


Revision tags: v4.2.0
# af8c7296 05-Jan-2019 Tomas Votruba

Add PHP 7.4 typed properties support


Revision tags: 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, v4.0.0alpha3, v3.1.3, v4.0.0alpha2, v3.1.2, v4.0.0alpha1
# 3193f7aa 15-Oct-2017 Wes

Fix documentation for "replaceNodes" option in NameResolver (#425)


Revision tags: v3.1.1
# e2e99f26 18-Aug-2017 TomasVotruba

Add strict_types to lib code


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

Generate PHP 7 type annotations


123