#
031c5e6e |
| 11-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.
|
#
b9fe3449 |
| 11-Sep-2022 |
Nikita Popov |
Add missing parameter types
|
#
8dfce13d |
| 11-Sep-2022 |
Nikita Popov |
Add phpstan baseline
|
#
4917c71a |
| 03-Sep-2022 |
Nikita Popov |
Rename Stmt\UseUse to UseItem
|
#
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.
|
#
23835d20 |
| 03-Sep-2022 |
Nikita Popov |
Rename Scalar\LNumber to Scalar\Int_
|
#
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 ...
|
#
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 ...
|
#
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.
|
#
9ef528f3 |
| 07-Aug-2022 |
Anton |
ParserAbstract: remove undefined class in `use` Class `PhpParser\Parser\Tokens` not exists in current version
|
#
1e89658c |
| 23-Jul-2022 |
Nikita Popov |
Add PhpVersion class
|
#
050342b5 |
| 04-Jul-2022 |
MathiasReker |
Add visibility modifiers to constants Closes GH-848.
|
#
4021a63c |
| 04-Jul-2022 |
MathiasReker |
No superfluous elseif Replaces superfluous elseif with if.
|
#
653757be |
| 04-Jul-2022 |
MathiasReker |
Nullable type declaration for default null value Adds ? before type declarations for parameters with a default null value
|
#
572af7ff |
| 04-Jul-2022 |
MathiasReker |
No unused imports Unused use statements must be removed.
|
#
5aae65e6 |
| 19-Jun-2022 |
Nikita Popov |
Add Parser::getLexer() method Not sure if this is going to stick, but for now this makes it easier to obtain the Lexer instance when creating the parser via ParserFactory.
|
#
a38a60b7 |
| 19-Jun-2022 |
Nikita Popov |
Move Tokens::T_* to Php7::T_* Drop the separate tokens class, move them into the parser.
|
#
c878d719 |
| 19-Jun-2022 |
Nikita Popov |
Move token mapping from lexer to parser This allows a different token mapping per parser.
|
#
e3ff8cf0 |
| 19-Jun-2022 |
Nikita Popov |
Add support for true type The null/false types were alread accepted previously, even though they are only legal as standalone types since PHP 8.2.
|
#
d3d1297c |
| 06-Jun-2022 |
Nikita Popov |
Remove PHP 5 parser
|
#
9c5eb3cc |
| 04-Jun-2022 |
Nikita Popov |
Add some missing type annotations
|
#
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
|