History log of /PHP-Parser/lib/PhpParser/Parser/Php7.php (Results 26 – 50 of 175)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# f59f226f 11-Sep-2022 Nikita Popov

Fix some phpstan warnings


# 636f066b 05-Sep-2022 Nikita Popov

Use Node\ClosureUse instead of Expr\ClosureUse in parser

Fixes #883.


# 4917c71a 03-Sep-2022 Nikita Popov

Rename Stmt\UseUse to UseItem


# e1345f0c 03-Sep-2022 Nikita Popov

Rename Stmt\PropertyProperty to PropertyItem


# 03ccfa3d 03-Sep-2022 Nikita Popov

Rename Stmt\DeclareDeclare to DeclareItem


# a44faa63 03-Sep-2022 Nikita Popov

Rename Scalar\Encapsed to Scalar\InterpolatedString


# f4ec6a1e 03-Sep-2022 Nikita Popov

Rename Scalar\EncapsedStringPart to InterpolatedStringPart

It is no longer an expression node, which unfortunately does
require a more awkward type for the Encaps node.


# 66b20bd6 03-Sep-2022 Nikita Popov

Rename Scalar\DNumber to Scalar\Float_


# 035c1c7c 02-Sep-2022 Nikita Popov

Rename Stmt\StaticVar to StaticVar

This is part of a statement, not a statement by itself.


# 8be56afd 02-Sep-2022 Nikita Popov

Rename Expr\ArrayItem to ArrayItem

Array items are not expressions by themselves.


# 09339862 01-Sep-2022 Nikita Popov

Make sure Array nodes can not contain null

Now that destructuring is always represented using List nodes,
make sure that Array nodes can no longer contain null elements,
so well-type

Make sure Array nodes can not contain null

Now that destructuring is always represented using List nodes,
make sure that Array nodes can no longer contain null elements,
so well-typed code doesn't have to deal with them unnecessarily.

If an array does contain empty elements, these are now result in
an error and are represented as a ArrayItem with Error value if
error recovery is used.

The implementation is a bit tricky because at the time the Array
node is created, we cannot tell whether it will be used in a
creation or destructuring context. For this reason the error
reporting is delayed parsing has finished.

Closes #876.

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


# 68fc1ba4 28-Aug-2022 Nikita Popov

Always use List_ node for array destructuring

Fixes #471.


# 9b2a01aa 07-Aug-2022 George Peter Banyard

Add support for DNF types (#862)


# 1e89658c 23-Jul-2022 Nikita Popov

Add PhpVersion class


# 050342b5 04-Jul-2022 MathiasReker

Add visibility modifiers to constants

Closes GH-848.


# 0ea134a5 19-Jun-2022 Nikita Popov

Add PHP 8 parser with correct concatenation precedence

The PHP 7 and PHP 8 parsers use the same grammar file and only
differ in token precedence.


# a38a60b7 19-Jun-2022 Nikita Popov

Move Tokens::T_* to Php7::T_*

Drop the separate tokens class, move them into the parser.


# b0469d12 12-Jun-2022 Nikita Popov

Rename Expr\ClosureUse -> ClosureUse

This is not a real expression, treat it similarly to Node\Arg
or Node\Param.

The old name is retained as an alias for compatibility.


# d3d1297c 06-Jun-2022 Nikita Popov

Remove PHP 5 parser


# bdd131d3 05-Jun-2022 Nikita Popov

Add missing strict_types=1 directive to parser


# aff98bbf 04-Jun-2022 Nikita Popov

Use PHP 8.0 token representation

Migrate everything to use PhpToken-compatible token representation,
rather than the legacy array/string representation.


# 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


# 5d83adcc 15-May-2022 Tomas Votruba

[String_] Add rawValue attribute (#831)


# 3bf00824 15-May-2022 Tomas Votruba

[DNumber] Add rawValue attribute to hold the original value (#833)


1234567