History log of /PHP-Parser/lib/PhpParser/NameContext.php (Results 1 – 23 of 23)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# ba144371 13-Aug-2024 evenevent

chore: fix comment

Signed-off-by: evenevent <digping@icloud.com>


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


# 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


# 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


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


# 7f72c841 10-Jan-2018 Gabriel Caruso

[CS] Open class brackets in new line


Revision tags: v4.0.0alpha3, v3.1.3, v4.0.0alpha2
# 68e9b91e 10-Nov-2017 Nikita Popov

Use fully-qualified names for global constant references


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

Add strict_types to lib code


# 7b36ca3b 15-Aug-2017 Nikita Popov

Add isSpecialClassName() method to Identifier and Name


# d97cc3d9 15-Aug-2017 Nikita Popov

Add toLowerString() method to Name and Identifier

Avoids patterns like strtolower((string) $name) when using
strict types.


# ec535ea1 13-Aug-2017 TomasVotruba

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


# 58bf92e4 13-Aug-2017 TomasVotruba

[cs] remove unused imports


Revision tags: v3.1.0, v3.0.6
# 19dde136 13-Jun-2017 Nikita Popov

Treat special names correctly in getShortName()

Also change the API to accept a string rather than a FullyQualified
name instance, as this is not appropriate for symbols like "self".


# a32e3797 28-Apr-2017 Nikita Popov

Generate PHP 7 type annotations


# 7f6477ed 28-Apr-2017 Nikita Popov

Combine class/non-class name resolution into single method


# 56b810e9 28-Apr-2017 Nikita Popov

Add getShortName() API

PHP's name resolution rules are f'ing complicated.


# 6168abd9 27-Apr-2017 Nikita Popov

Extract name resolution logic into NameContext

All the generic name resolution logic is now available as a separate
class with a public API.