History log of /PHP-Parser/ (Results 76 – 100 of 1647)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
3fb4b92f13-Jun-2023 Danny van der Sluijs

Update main.yml to use GitHub Actions V3

Updates the GitHub Actions from V2 to V3

(cherry picked from commit 1d0748ad35201d483816634dd4bfe55a6f26d857)

571ca90b24-Jun-2023 Nikita Popov

Release PHP-Parser 5.0.0-alpha3

16c766ea28-May-2023 Nikita Popov

Don't take subnodes by reference when traversing

Explicitly assign the property where necessary to avoid the
creation of unnecessary reference-wrappers everywhere.

53f6717328-May-2023 Nikita Popov

Remove unnecessary Node return value from traverseNode()

The node always stays the same: We may only change subnodes.

5b65f9fc27-May-2023 Nikita Popov

Some documentation updates

69993a1821-May-2023 Nikita Popov

Update CHANGELOG and UPGRADING

2364757321-May-2023 Nikita Popov

Represent names using string rather than array of parts

In most circumstances we are interested in the whole string, not
the parts split by namespace separator. As names are common, this

Represent names using string rather than array of parts

In most circumstances we are interested in the whole string, not
the parts split by namespace separator. As names are common, this
representation measurably improves memory usage and performance.

show more ...


lib/PhpParser/Node/Name.php
lib/PhpParser/PrettyPrinter/Standard.php
test/PhpParser/Node/NameTest.php
test/PhpParser/NodeDumperTest.php
test/PhpParser/NodeVisitor/NameResolverTest.php
test/code/formatPreservation/listInsertion.test
test/code/parser/errorHandling/eofError.test
test/code/parser/errorHandling/recovery.test
test/code/parser/expr/arraySpread.test
test/code/parser/expr/assignNewByRef.test
test/code/parser/expr/closure.test
test/code/parser/expr/comparison.test
test/code/parser/expr/constant_expr.test
test/code/parser/expr/dynamicClassConst.test
test/code/parser/expr/fetchAndCall/args.test
test/code/parser/expr/fetchAndCall/constFetch.test
test/code/parser/expr/fetchAndCall/constantDeref.test
test/code/parser/expr/fetchAndCall/funcCall.test
test/code/parser/expr/fetchAndCall/namedArgs.test
test/code/parser/expr/fetchAndCall/newDeref.test
test/code/parser/expr/fetchAndCall/staticCall.test
test/code/parser/expr/fetchAndCall/staticPropertyFetch.test
test/code/parser/expr/firstClassCallables.test
test/code/parser/expr/issetAndEmpty.test
test/code/parser/expr/keywordsInNamespacedName.test
test/code/parser/expr/match.test
test/code/parser/expr/new.test
test/code/parser/expr/throw.test
test/code/parser/expr/trailingCommas.test
test/code/parser/expr/uvs/constDeref.test
test/code/parser/expr/uvs/globalNonSimpleVarError.test
test/code/parser/expr/uvs/indirectCall.test
test/code/parser/expr/uvs/new.test
test/code/parser/expr/uvs/staticProperty.test
test/code/parser/expr/variable.test
test/code/parser/scalar/numberSeparators.test
test/code/parser/semiReserved.test
test/code/parser/stmt/attributes.test
test/code/parser/stmt/class/anonymous.test
test/code/parser/stmt/class/conditional.test
test/code/parser/stmt/class/enum.test
test/code/parser/stmt/class/interface.test
test/code/parser/stmt/class/name.test
test/code/parser/stmt/class/propertyTypes.test
test/code/parser/stmt/class/shortEchoAsIdentifier.test
test/code/parser/stmt/class/simple.test
test/code/parser/stmt/class/staticType.test
test/code/parser/stmt/class/trait.test
test/code/parser/stmt/class/typedConstants.test
test/code/parser/stmt/const.test
test/code/parser/stmt/function/conditional.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/nullFalseTrueTypes.test
test/code/parser/stmt/function/nullableTypes.test
test/code/parser/stmt/function/readonlyFunction.test
test/code/parser/stmt/function/returnTypes.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/generator/basic.test
test/code/parser/stmt/generator/yieldPrecedence.test
test/code/parser/stmt/haltCompiler.test
test/code/parser/stmt/haltCompilerOffset.test
test/code/parser/stmt/multiCatch.test
test/code/parser/stmt/namespace/alias.test
test/code/parser/stmt/namespace/braced.test
test/code/parser/stmt/namespace/commentAfterNamespace.test
test/code/parser/stmt/namespace/groupUse.test
test/code/parser/stmt/namespace/groupUseErrors.test
test/code/parser/stmt/namespace/groupUsePositions.test
test/code/parser/stmt/namespace/groupUseTrailingComma.test
test/code/parser/stmt/namespace/invalidName.test
test/code/parser/stmt/namespace/mix.test
test/code/parser/stmt/namespace/name.test
test/code/parser/stmt/namespace/nested.test
test/code/parser/stmt/namespace/notBraced.test
test/code/parser/stmt/namespace/nsAfterHashbang.test
test/code/parser/stmt/namespace/outsideStmt.test
test/code/parser/stmt/namespace/outsideStmtInvalid.test
test/code/parser/stmt/newInInitializer.test
test/code/parser/stmt/tryCatch.test
test/code/parser/stmt/tryCatch_without_variable.test
test/code/parser/stmt/tryWithoutCatch.test
df3a705721-May-2023 Nikita Popov

Add Name::getParts(), deprecate Name::$parts

In preparation for switching this to a plain string in
PHP-Parser 5, deprecate direct access to the property and
provide an API that will

Add Name::getParts(), deprecate Name::$parts

In preparation for switching this to a plain string in
PHP-Parser 5, deprecate direct access to the property and
provide an API that will work on both versions.

(cherry picked from commit c9e5a13d68486e9fd75f9be1b4639644e54e7f4f)

show more ...

d43edfbb21-May-2023 Nikita Popov

Support CRLF newlines in pretty printer

Can be enabled using the "newlines" option.

ad8daa1221-May-2023 Nikita Popov

Normalize newlines in Comment::getReformattedText()

Normalize CRLF to LF in getReformattedText(). That was, if the
comment is pretty-printed, we will use proper LF newlines, rather
t

Normalize newlines in Comment::getReformattedText()

Normalize CRLF to LF in getReformattedText(). That was, if the
comment is pretty-printed, we will use proper LF newlines, rather
than inserting indentation between the CR and LF.

At the same time, this also makes it easier to emit actual CRLF
newlines with a custom pretty printer.

Fixes #599.

show more ...

5883189d21-May-2023 Nikita Popov

Fix return type of Comment::getReformattedText()

afe1628a21-May-2023 Nikita Popov

Add support for NodeVisitor::REPLACE_WITH_NULL

Fixes #716.

289756d021-May-2023 Nikita Popov

Gracefully handle non-contiguous arrays in Differ

Fixes #909.

8490c0e821-May-2023 Nikita Popov

Call leaveNode() on visitors in reverse order

Node visitation is now properly nested. The call sequence will
now be

$visitor1->enterNode($n);
$visitor2->enterNode($n

Call leaveNode() on visitors in reverse order

Node visitation is now properly nested. The call sequence will
now be

$visitor1->enterNode($n);
$visitor2->enterNode($n);
$visitor2->leaveNode($n);
$visitor1->leaveNode($n);

rather than

$visitor1->enterNode($n);
$visitor2->enterNode($n);
$visitor1->leaveNode($n);
$visitor2->leaveNode($n);

Fixes #899.

show more ...

8bc6982421-May-2023 Nikita Popov

Ensure removing visitor does not leave holes

fb2c3ac920-May-2023 Nikita Popov

Fix emulative lexer with default error handler

If no error handler is provided, explicitly create one, so we don't
end up calling handleError() on null.

c23976a220-May-2023 Nikita Popov

Stop accepting strings as types

For types the use of a string is ambiguous -- it could be either
an Identifier or a Name. Don't guess.

Retain the implicit promotion to Identifie

Stop accepting strings as types

For types the use of a string is ambiguous -- it could be either
an Identifier or a Name. Don't guess.

Retain the implicit promotion to Identifier in places where only
Identifier is legal, e.g. various symbol names.

show more ...

a9dad5c520-May-2023 Nikita Popov

Fix type of ClassConst::$type

74caed6420-May-2023 Nikita Popov

Fix labelCharMap for DEL character

This map is supposed to have string keys, not integer keys.

a5d4c10020-May-2023 Nikita Popov

Remove some unused symbols

93731c5c20-May-2023 Nikita Popov

Move constants from NodeTraverser to NodeVisitor

These are really part of the NodeVisitor API. Retain aliases for
compatibility.

0a8a333a20-May-2023 Nikita Popov

Blacklist test with comments in intersection types

91da191420-May-2023 Nikita Popov

Support readonly anonymous classes

5c267f5520-May-2023 Nikita Popov

Add support for typed constants

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

9a5d5c1120-May-2023 Nikita Popov

Add newline at end of file for many tests

Add the newline in reconstructTest() and run updateTests.php, to
reduce spurious diffs in the future.


test/PhpParser/CodeTestParser.php
test/code/parser/blockComments.test
test/code/parser/comments.test
test/code/parser/errorHandling/eofError.test
test/code/parser/expr/arrayDef.test
test/code/parser/expr/arrayDestructuring.test
test/code/parser/expr/arrayEmptyElemens.test
test/code/parser/expr/arraySpread.test
test/code/parser/expr/arrow_function.test
test/code/parser/expr/assign.test
test/code/parser/expr/assignNewByRef.test
test/code/parser/expr/cast.test
test/code/parser/expr/clone.test
test/code/parser/expr/closure.test
test/code/parser/expr/closure_use_trailing_comma.test
test/code/parser/expr/comparison.test
test/code/parser/expr/concatPrecedence.test
test/code/parser/expr/constant_expr.test
test/code/parser/expr/errorSuppress.test
test/code/parser/expr/exit.test
test/code/parser/expr/exprInIsset.test
test/code/parser/expr/exprInList.test
test/code/parser/expr/fetchAndCall/args.test
test/code/parser/expr/fetchAndCall/constFetch.test
test/code/parser/expr/fetchAndCall/constantDeref.test
test/code/parser/expr/fetchAndCall/funcCall.test
test/code/parser/expr/fetchAndCall/namedArgs.test
test/code/parser/expr/fetchAndCall/newDeref.test
test/code/parser/expr/fetchAndCall/objectAccess.test
test/code/parser/expr/fetchAndCall/simpleArrayAccess.test
test/code/parser/expr/fetchAndCall/staticCall.test
test/code/parser/expr/fetchAndCall/staticPropertyFetch.test
test/code/parser/expr/firstClassCallables.test
test/code/parser/expr/includeAndEval.test
test/code/parser/expr/issetAndEmpty.test
test/code/parser/expr/keywordsInNamespacedName.test
test/code/parser/expr/listReferences.test
test/code/parser/expr/listWithKeys.test
test/code/parser/expr/logic.test
test/code/parser/expr/match.test
test/code/parser/expr/math.test
test/code/parser/expr/new.test
test/code/parser/expr/newWithoutClass.test
test/code/parser/expr/print.test
test/code/parser/expr/shellExec.test
test/code/parser/expr/ternaryAndCoalesce.test
test/code/parser/expr/throw.test
test/code/parser/expr/trailingCommas.test
test/code/parser/expr/uvs/constDeref.test
test/code/parser/expr/uvs/globalNonSimpleVarError.test
test/code/parser/expr/uvs/indirectCall.test
test/code/parser/expr/uvs/isset.test
test/code/parser/expr/uvs/new.test
test/code/parser/expr/uvs/newInstanceofExpr.test
test/code/parser/expr/uvs/staticProperty.test
test/code/parser/expr/varVarPos.test
test/code/parser/expr/variable.test
test/code/parser/nopPositions.test
test/code/parser/scalar/explicitOctal.test
test/code/parser/scalar/invalidOctal.test
test/code/parser/scalar/magicConst.test
test/code/parser/stmt/class/abstract.test
test/code/parser/stmt/class/class_position.test
test/code/parser/stmt/class/conditional.test
test/code/parser/stmt/class/constModifierErrors.test
test/code/parser/stmt/class/constModifiers.test
test/code/parser/stmt/class/enum.test
test/code/parser/stmt/class/enum_with_string.test
test/code/parser/stmt/class/final.test
test/code/parser/stmt/class/interface.test
test/code/parser/stmt/class/name.test
test/code/parser/stmt/class/property_promotion.test
test/code/parser/stmt/class/readonly.test
test/code/parser/stmt/class/readonlyAsClassName.test
test/code/parser/stmt/class/readonlyMethod.test
test/code/parser/stmt/class/staticMethod.test
test/code/parser/stmt/class/staticType.test
test/code/parser/stmt/class/trait.test
test/code/parser/stmt/const.test
test/code/parser/stmt/controlFlow.test
test/code/parser/stmt/echo.test
test/code/parser/stmt/function/builtinTypeDeclarations.test
test/code/parser/stmt/function/byRef.test
test/code/parser/stmt/function/conditional.test
test/code/parser/stmt/function/defaultValues.test
test/code/parser/stmt/function/neverType.test
test/code/parser/stmt/function/nullFalseTrueTypes.test
test/code/parser/stmt/function/nullableTypes.test
test/code/parser/stmt/function/parameters_trailing_comma.test
test/code/parser/stmt/function/returnTypes.test
test/code/parser/stmt/function/specialVars.test
test/code/parser/stmt/function/typeDeclarations.test
test/code/parser/stmt/function/typeVersions.test
test/code/parser/stmt/function/variadic.test
test/code/parser/stmt/function/variadicDefaultValue.test
test/code/parser/stmt/generator/basic.test
test/code/parser/stmt/generator/yieldPrecedence.test
test/code/parser/stmt/generator/yieldUnaryPrecedence.test
test/code/parser/stmt/haltCompiler.test
test/code/parser/stmt/haltCompilerInvalidSyntax.test
test/code/parser/stmt/haltCompilerOffset.test
test/code/parser/stmt/haltCompilerOutermostScope.test
test/code/parser/stmt/hashbang.test
test/code/parser/stmt/if.test
test/code/parser/stmt/inlineHTML.test
test/code/parser/stmt/loop/do.test
test/code/parser/stmt/loop/for.test
test/code/parser/stmt/loop/foreach.test
test/code/parser/stmt/loop/while.test
test/code/parser/stmt/multiCatch.test
test/code/parser/stmt/namespace/braced.test
test/code/parser/stmt/namespace/commentAfterNamespace.test
test/code/parser/stmt/namespace/name.test
test/code/parser/stmt/namespace/nested.test
test/code/parser/stmt/namespace/notBraced.test
test/code/parser/stmt/namespace/nsAfterHashbang.test
test/code/parser/stmt/switch.test
test/code/parser/stmt/tryCatch.test
test/code/parser/stmt/tryCatch_without_variable.test
test/code/parser/stmt/tryWithoutCatch.test
test/code/parser/stmt/unset.test

12345678910>>...66