History log of /PHP-Parser/ (Results 151 – 175 of 1647)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
950bf8f112-Nov-2022 Nikita Popov

Adjust tests to work on 32-bit

Fixes #662.

4ce9781212-Nov-2022 Nikita Popov

Fix parsing of large hex floats containing "e"

These ended up taking the code path for normal floats and being
cast to zero.

f077f76530-Oct-2022 Nikita Popov

Add some unit tests for PhpVersion

b0edd4c421-Sep-2022 Nikita Popov

Bail out on PHP tags in removed code

If dropping a node would drop PHP tags, bail out of formatting
preservation. This will lose formatting, but at least produce
legal code.

Bail out on PHP tags in removed code

If dropping a node would drop PHP tags, bail out of formatting
preservation. This will lose formatting, but at least produce
legal code.

Closes GH-884.

show more ...

bad10e1621-Sep-2022 Nikita Popov

Add more tests for formatting preservation with InlineHTML

It's all broken...

4bcdf74b21-Sep-2022 Nikita Popov

Add support for perserving formatting for static modifier change

Closes GH-891.

46558ed919-Sep-2022 Abdul Malik Ikhsan

Show missing format preservation when adding static modifier to closure

5573afc018-Sep-2022 Nikita Popov

Test PHP 8.2 in CI

0dd85ebd18-Sep-2022 Nikita Popov

Support readonly before DNF type

This makes us match the PHP 8.2 handling of readonly. Handling of
"readonly" functions is moved to the parser to allow distinguishing
them from reado

Support readonly before DNF type

This makes us match the PHP 8.2 handling of readonly. Handling of
"readonly" functions is moved to the parser to allow distinguishing
them from readonly properties with DNF types. We have to uglify the
grammar to avoid some shift/reduce conflicts. Thank you WordPress.

show more ...

132690f217-Sep-2022 Nikita Popov

Slightly more precise type

f7b448fa17-Sep-2022 Nikita Popov

Bail out on list insertion of non-Node

PhpStan correctly detected that this is not supported. We could
add support for it, but for now just make sure it doesn't crash.

b3ad14b917-Sep-2022 Nikita Popov

Fix some types

9f9c2ea817-Sep-2022 Nikita Popov

Use PhpStan level 6

New baseline errors are array types that I prefer to leave alone,
as well as one PhpStan bug:
https://github.com/phpstan/phpstan/issues/4526

f98341f617-Sep-2022 Nikita Popov

Specify more types

fc6b489011-Sep-2022 Nikita Popov

Specify more types

032b102111-Sep-2022 Nikita Popov

Remove deprecated Error constructor

And use this chance to provide accurate position information for
namespace errors.

40c89cf911-Sep-2022 Nikita Popov

Specify some more types

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


lib/PhpParser/Error.php
lib/PhpParser/Node.php
lib/PhpParser/Node/Arg.php
lib/PhpParser/Node/ArrayItem.php
lib/PhpParser/Node/Attribute.php
lib/PhpParser/Node/AttributeGroup.php
lib/PhpParser/Node/ClosureUse.php
lib/PhpParser/Node/Const_.php
lib/PhpParser/Node/DeclareItem.php
lib/PhpParser/Node/Expr/ArrayDimFetch.php
lib/PhpParser/Node/Expr/Array_.php
lib/PhpParser/Node/Expr/ArrowFunction.php
lib/PhpParser/Node/Expr/Assign.php
lib/PhpParser/Node/Expr/AssignOp.php
lib/PhpParser/Node/Expr/AssignRef.php
lib/PhpParser/Node/Expr/BinaryOp.php
lib/PhpParser/Node/Expr/BitwiseNot.php
lib/PhpParser/Node/Expr/BooleanNot.php
lib/PhpParser/Node/Expr/Cast.php
lib/PhpParser/Node/Expr/ClassConstFetch.php
lib/PhpParser/Node/Expr/Clone_.php
lib/PhpParser/Node/Expr/Closure.php
lib/PhpParser/Node/Expr/ConstFetch.php
lib/PhpParser/Node/Expr/Empty_.php
lib/PhpParser/Node/Expr/Error.php
lib/PhpParser/Node/Expr/ErrorSuppress.php
lib/PhpParser/Node/Expr/Eval_.php
lib/PhpParser/Node/Expr/Exit_.php
lib/PhpParser/Node/Expr/FuncCall.php
lib/PhpParser/Node/Expr/Include_.php
lib/PhpParser/Node/Expr/Instanceof_.php
lib/PhpParser/Node/Expr/Isset_.php
lib/PhpParser/Node/Expr/List_.php
lib/PhpParser/Node/Expr/MethodCall.php
lib/PhpParser/Node/Expr/New_.php
lib/PhpParser/Node/Expr/NullsafeMethodCall.php
lib/PhpParser/Node/Expr/NullsafePropertyFetch.php
lib/PhpParser/Node/Expr/PostDec.php
lib/PhpParser/Node/Expr/PostInc.php
lib/PhpParser/Node/Expr/PreDec.php
lib/PhpParser/Node/Expr/PreInc.php
lib/PhpParser/Node/Expr/Print_.php
lib/PhpParser/Node/Expr/PropertyFetch.php
lib/PhpParser/Node/Expr/ShellExec.php
lib/PhpParser/Node/Expr/StaticCall.php
lib/PhpParser/Node/Expr/StaticPropertyFetch.php
lib/PhpParser/Node/Expr/Ternary.php
lib/PhpParser/Node/Expr/Throw_.php
lib/PhpParser/Node/Expr/UnaryMinus.php
lib/PhpParser/Node/Expr/UnaryPlus.php
lib/PhpParser/Node/Expr/Variable.php
lib/PhpParser/Node/Expr/YieldFrom.php
lib/PhpParser/Node/Expr/Yield_.php
lib/PhpParser/Node/Identifier.php
lib/PhpParser/Node/InterpolatedStringPart.php
lib/PhpParser/Node/IntersectionType.php
lib/PhpParser/Node/Name.php
lib/PhpParser/Node/NullableType.php
lib/PhpParser/Node/Param.php
lib/PhpParser/Node/PropertyItem.php
lib/PhpParser/Node/Scalar/Float_.php
lib/PhpParser/Node/Scalar/Int_.php
lib/PhpParser/Node/Scalar/InterpolatedString.php
lib/PhpParser/Node/Scalar/MagicConst.php
lib/PhpParser/Node/Scalar/String_.php
lib/PhpParser/Node/StaticVar.php
lib/PhpParser/Node/Stmt/Break_.php
lib/PhpParser/Node/Stmt/Case_.php
lib/PhpParser/Node/Stmt/Catch_.php
lib/PhpParser/Node/Stmt/ClassConst.php
lib/PhpParser/Node/Stmt/ClassMethod.php
lib/PhpParser/Node/Stmt/Class_.php
lib/PhpParser/Node/Stmt/Const_.php
lib/PhpParser/Node/Stmt/Continue_.php
lib/PhpParser/Node/Stmt/Declare_.php
lib/PhpParser/Node/Stmt/Do_.php
lib/PhpParser/Node/Stmt/Echo_.php
lib/PhpParser/Node/Stmt/ElseIf_.php
lib/PhpParser/Node/Stmt/Else_.php
lib/PhpParser/Node/Stmt/EnumCase.php
lib/PhpParser/Node/Stmt/Enum_.php
lib/PhpParser/Node/Stmt/Expression.php
lib/PhpParser/Node/Stmt/Finally_.php
lib/PhpParser/Node/Stmt/For_.php
lib/PhpParser/Node/Stmt/Foreach_.php
lib/PhpParser/Node/Stmt/Function_.php
lib/PhpParser/Node/Stmt/Global_.php
lib/PhpParser/Node/Stmt/Goto_.php
lib/PhpParser/Node/Stmt/GroupUse.php
lib/PhpParser/Node/Stmt/HaltCompiler.php
lib/PhpParser/Node/Stmt/If_.php
lib/PhpParser/Node/Stmt/InlineHTML.php
lib/PhpParser/Node/Stmt/Interface_.php
lib/PhpParser/Node/Stmt/Label.php
lib/PhpParser/Node/Stmt/Namespace_.php
lib/PhpParser/Node/Stmt/Property.php
lib/PhpParser/Node/Stmt/Return_.php
lib/PhpParser/Node/Stmt/Static_.php
lib/PhpParser/Node/Stmt/Switch_.php
lib/PhpParser/Node/Stmt/Throw_.php
lib/PhpParser/Node/Stmt/TraitUse.php
lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php
lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php
lib/PhpParser/Node/Stmt/Trait_.php
lib/PhpParser/Node/Stmt/TryCatch.php
lib/PhpParser/Node/Stmt/Unset_.php
lib/PhpParser/Node/Stmt/Use_.php
lib/PhpParser/Node/Stmt/While_.php
lib/PhpParser/Node/UnionType.php
lib/PhpParser/Node/UseItem.php
lib/PhpParser/Node/VariadicPlaceholder.php
lib/PhpParser/NodeAbstract.php
lib/PhpParser/ParserAbstract.php
c595989e11-Sep-2022 Nikita Popov

Support adding class constants in trait builder

These are allowed as of PHP 8.2.

6af2044611-Sep-2022 Nikita Popov

Add some missing property types

48f470ea11-Sep-2022 Nikita Popov

Add missing return types

43d6332d11-Sep-2022 Nikita Popov

Add return types to PrettyPrinter\Standard

9b46dffb11-Sep-2022 Nikita Popov

Fix formatting preservation for alternative elseif/else syntax

Test taken from PR #797.

205bd75a11-Sep-2022 Nikita Popov

Add isPublic() etc methods on Param node

Also isPromoted() to check for any flags.

031c5e6e11-Sep-2022 Nikita Popov

Move verifyModifier/verifyClassModifier to Modifiers class

Now that the Modifiers are in a separate class, these *internal*
verification methods should also be moved there.

12345678910>>...66