History log of /PHP-Parser/ (Results 26 – 50 of 1692)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
e3f223f628-Jul-2024 Nikita Popov

Fix expected json dump for old PHP versions

03caf4cc14-Jul-2024 Nikita Popov

[8.4] Add support for property hooks

Add hooks subnode to Stmt\Property and Param, which contains an
array of PropertyHook.

The property hook support is considered experimental

[8.4] Add support for property hooks

Add hooks subnode to Stmt\Property and Param, which contains an
array of PropertyHook.

The property hook support is considered experimental and subject
to change.

RFC: https://wiki.php.net/rfc/property-hooks

show more ...


grammar/php.y
lib/PhpParser/Builder/Property.php
lib/PhpParser/Node/Param.php
lib/PhpParser/Node/PropertyHook.php
lib/PhpParser/Node/Stmt/Property.php
lib/PhpParser/Parser/Php7.php
lib/PhpParser/Parser/Php8.php
lib/PhpParser/ParserAbstract.php
lib/PhpParser/PrettyPrinter/Standard.php
lib/PhpParser/PrettyPrinterAbstract.php
test/PhpParser/Builder/PropertyTest.php
test/PhpParser/NodeAbstractTest.php
test/code/formatPreservation/property_hooks.test
test/code/parser/commentAtEndOfClass.test
test/code/parser/errorHandling/recovery.test
test/code/parser/expr/arrow_function.test
test/code/parser/expr/closure.test
test/code/parser/expr/uvs/indirectCall.test
test/code/parser/semiReserved.test
test/code/parser/stmt/attributes.test
test/code/parser/stmt/class/anonymous.test
test/code/parser/stmt/class/implicitPublic.test
test/code/parser/stmt/class/modifier_error.test
test/code/parser/stmt/class/php4Style.test
test/code/parser/stmt/class/propertyTypes.test
test/code/parser/stmt/class/property_hooks.test
test/code/parser/stmt/class/property_modifiers.test
test/code/parser/stmt/class/property_promotion.test
test/code/parser/stmt/class/simple.test
test/code/parser/stmt/function/builtinTypeDeclarations.test
test/code/parser/stmt/function/byRef.test
test/code/parser/stmt/function/defaultValues.test
test/code/parser/stmt/function/disjointNormalFormTypes.test
test/code/parser/stmt/function/intersectionTypes.test
test/code/parser/stmt/function/nullableTypes.test
test/code/parser/stmt/function/parameters_trailing_comma.test
test/code/parser/stmt/function/typeDeclarations.test
test/code/parser/stmt/function/typeVersions.test
test/code/parser/stmt/function/unionTypes.test
test/code/parser/stmt/function/variadic.test
test/code/parser/stmt/function/variadicDefaultValue.test
test/code/parser/stmt/newInInitializer.test
test/code/prettyPrinter/stmt/property_hooks.test
b11fc12c28-Jul-2024 Nikita Popov

Use ParserFactory in integration test

So we actually use the PHP 8 parser on new versions.

3beee6ec28-Jul-2024 Nikita Popov

Add Modifiers::toString() helper

Convert an integer modifier into a string.

58de479121-Jul-2024 Nikita Popov

Remove error for abstract/final properties

These are allowed since PHP 8.4, with the introduction of property
hooks. (Abstract properties require hooks, which is not validated
here.)

d3ae2ed621-Jul-2024 Nikita Popov

Respect version mode line in pretty printer tests

By default parser uses newest supported and pretty printer uses
its default version. If version is specified, it's used for both
par

Respect version mode line in pretty printer tests

By default parser uses newest supported and pretty printer uses
its default version. If version is specified, it's used for both
parser and printer. Additionally, parserVersion can be used to
specify a different version for parser and printer.

show more ...

beba9c5219-Jul-2024 Nikita Popov

Remove support for alternative array syntax in PHP 8 parser

We cannot support both this syntax and property hooks. Drop
support for the alternative syntax in the PHP 8 parser. The
PH

Remove support for alternative array syntax in PHP 8 parser

We cannot support both this syntax and property hooks. Drop
support for the alternative syntax in the PHP 8 parser. The
PHP 7 parser still supports it.

show more ...

fadccead14-Jul-2024 Nikita Popov

Avoid compatibilty token list in parser

Create the mapping using the entries in symbolToName, so we don't
need to repeat the compatibility tokens in another place.

d8235a2714-Jul-2024 Nikita Popov

[8.4] Add support for __PROPERTY__ magic constant

Part of property hooks RFC.

5973c30a13-Jul-2024 Amirreza Nasiri

Update JSON_representation.markdown

Fix the invalid JSON structure

b917ba7b13-Jul-2024 Nikita Popov

Add PHP 8.4 to CI matrix

Not using it in the integration tests yet.

caf5404413-Jul-2024 Nikita Popov

Declare PHP 8.4 as the newest supported version

As the comment indicates, this includes partially supported
versions. PHP-Parser includes support for all parts of PHP 8.4
that have l

Declare PHP 8.4 as the newest supported version

As the comment indicates, this includes partially supported
versions. PHP-Parser includes support for all parts of PHP 8.4
that have landed in php-src.

show more ...

683130c201-Jul-2024 Nikita Popov

Release PHP-Parser 5.1.0

a894652a01-Jul-2024 Nikita Popov

Fix ternary precedence printing

The precedence table set the LHS and RHS precedence for the
ternary to -1, which is the dummy value used for unary operators.
Instead, it should be th

Fix ternary precedence printing

The precedence table set the LHS and RHS precedence for the
ternary to -1, which is the dummy value used for unary operators.
Instead, it should be the same as the operator precedence, as
the ternary is non-associative since PHP 8.

Fixes #1009.

show more ...

3ef0811e12-Jun-2024 Jing Xu(RainX)

Fix a typo: Dereferencable to Dereferenceable

db1963f912-Jun-2024 Jing Xu(RainX)

Fix a typo: `Dereferenceing` to `Dereferencing`

daaadc3b03-Jun-2024 Jorg Adam Sowa

Adjust tests to be compatible with PHPUnit 10 (#998)

This avoids warnings on PHPUnit 10, without actually
switching to PHPUnit 10.

7b0384cd25-May-2024 Nikita Popov

[8.4] Add support for new deref without parens

RFC: https://wiki.php.net/rfc/new_without_parentheses

d57da64d31-May-2024 Jorg Adam Sowa

Add missing void return types (#997)


test/PhpParser/Builder/ClassConstTest.php
test/PhpParser/Builder/ClassTest.php
test/PhpParser/Builder/EnumCaseTest.php
test/PhpParser/Builder/EnumTest.php
test/PhpParser/Builder/FunctionTest.php
test/PhpParser/Builder/InterfaceTest.php
test/PhpParser/Builder/MethodTest.php
test/PhpParser/Builder/NamespaceTest.php
test/PhpParser/Builder/ParamTest.php
test/PhpParser/Builder/PropertyTest.php
test/PhpParser/Builder/TraitTest.php
test/PhpParser/Builder/TraitUseAdaptationTest.php
test/PhpParser/Builder/TraitUseTest.php
test/PhpParser/Builder/UseTest.php
test/PhpParser/BuilderFactoryTest.php
test/PhpParser/BuilderHelpersTest.php
test/PhpParser/CodeParsingTest.php
test/PhpParser/CommentTest.php
test/PhpParser/CompatibilityTest.php
test/PhpParser/ConstExprEvaluatorTest.php
test/PhpParser/ErrorHandler/CollectingTest.php
test/PhpParser/ErrorHandler/ThrowingTest.php
test/PhpParser/ErrorTest.php
test/PhpParser/Internal/DifferTest.php
test/PhpParser/JsonDecoderTest.php
test/PhpParser/Lexer/EmulativeTest.php
test/PhpParser/LexerTest.php
test/PhpParser/NameContextTest.php
test/PhpParser/Node/Expr/CallableLikeTest.php
test/PhpParser/Node/IdentifierTest.php
test/PhpParser/Node/NameTest.php
test/PhpParser/Node/ParamTest.php
test/PhpParser/Node/Scalar/DNumberTest.php
test/PhpParser/Node/Scalar/MagicConstTest.php
test/PhpParser/Node/Scalar/NumberTest.php
test/PhpParser/Node/Scalar/StringTest.php
test/PhpParser/Node/Stmt/ClassConstTest.php
test/PhpParser/Node/Stmt/ClassMethodTest.php
test/PhpParser/Node/Stmt/ClassTest.php
test/PhpParser/Node/Stmt/InterfaceTest.php
test/PhpParser/Node/Stmt/PropertyTest.php
test/PhpParser/NodeAbstractTest.php
test/PhpParser/NodeDumperTest.php
test/PhpParser/NodeFinderTest.php
test/PhpParser/NodeTraverserTest.php
test/PhpParser/NodeVisitor/FindingVisitorTest.php
test/PhpParser/NodeVisitor/FirstFindingVisitorTest.php
test/PhpParser/NodeVisitor/NameResolverTest.php
test/PhpParser/NodeVisitor/NodeConnectingVisitorTest.php
test/PhpParser/NodeVisitor/ParentConnectingVisitorTest.php
test/PhpParser/ParserFactoryTest.php
test/PhpParser/ParserTest.php
test/PhpParser/PhpVersionTest.php
test/PhpParser/PrettyPrinterTest.php
test/PhpParser/TokenTest.php
tools/fuzzing/target.php
d327cf2a20-May-2024 Jorg Sowa

Updated actions/checkout to v4

c5ee33df19-Apr-2024 Markus Staab

Declare more precise phpdoc types (#993)

46be456017-Mar-2024 Nikita Popov

Use PHP 8.3 for more CI jobs

f2e037f817-Mar-2024 Markus Staab

Make phpunit fail on deprecation warnings (#989)

(cherry picked from commit 4d36e9c16f4820c2ed9360bc818982f3c02a08f5)

b43758e917-Mar-2024 Nikita Popov

Remove PHPUnit 7 and 8

PHPUnit 9 supports all the PHP versions that we need. Also update
the PHPUnit config schema.

09691fc813-Mar-2024 Markus Staab

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

12345678910>>...68