History log of /PHP-Parser/lib/PhpParser/Node.php (Results 1 – 22 of 22)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# c5ee33df 19-Apr-2024 Markus Staab

Declare more precise phpdoc types (#993)


# 09691fc8 13-Mar-2024 Markus Staab

Prevent off-by-one errors in line-number related methods


# ab51e9d3 17-Sep-2023 Nikita Popov

Remove superfluous phpdoc tags

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


# 1873020b 17-Sep-2023 Nikita Popov

Deprecate Node::getLine() in favor of Node::getStartLine()


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


# 40c89cf9 11-Sep-2022 Nikita Popov

Specify some more types


# a099803d 11-Sep-2022 Nikita Popov

Use array<string, mixed> type for $attributes

Slightly more accurate, and stops PHPStan from complaining about
the missing array type information.


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


# 9c5eb3cc 04-Jun-2022 Nikita Popov

Add some missing type annotations


# 3ec87ef7 15-Feb-2020 Nikita Popov

Don't require doc comment to be last comment

Fixes #652.


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
# 24995347 10-Jan-2018 Gabriel Caruso

[CS] Whitespace before return type


Revision tags: v4.0.0alpha3, v3.1.3, v4.0.0alpha2, v3.1.2, v4.0.0alpha1
# cc328a4c 29-Sep-2017 Nikita Popov

Add get{Start,End}{Line,TokenPos,FilePos}() methods


# 3d4621bb 29-Sep-2017 Nikita Popov

Don't return by ref from getAttribute()

This is not worth the few times where it might be useful.


# d8f91733 29-Sep-2017 Nikita Popov

Add Node::getComments() method


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

Add strict_types to lib code


Revision tags: v3.1.0, v3.0.6
# b1af3d1f 05-May-2017 Wes

Add Node::setAttributes() (#385)


# 92275bdf 29-Apr-2017 Nikita Popov

Remove Node::setLine() method


# 3da86df4 29-Apr-2017 Nikita Popov

Deprecate Node::setLine()


# a32e3797 28-Apr-2017 Nikita Popov

Generate PHP 7 type annotations


Revision tags: v3.0.5, v3.0.4, v3.0.3, v3.0.2, v3.0.1, v3.0.0, v3.0.0beta2
# 0d0accfa 21-Oct-2016 Nikita Popov

Add setDocComment() to Node interface

Previously it was only part of NodeAbstract.


Revision tags: v3.0.0beta1, v2.1.1, v3.0.0alpha1, v2.1.0, v2.0.1, 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, v1.0.2, v1.0.1, v1.0.0, v1.0.0beta2, v0.9.5, v1.0.0beta1
# f82862ec 06-Feb-2014 nikic

Port library to use namespaces, with BC for old names