tolerant-php-parser/tests
Tyson Andre ce5acf3186 Use PHPDoc `@param string ...$classNames`
The `string` is the type of each argument.
The `...` indicates that it is an array of that type, like
`function (string ...$classNames)` also would indicate.

Update code to PHPStan Level 3

Added ReturnTypeWillChange

Fix return type for Expression

Add type hints for returned variables

Add generic parameter for delimted list

Fixing type hints

Ignore co-variance error

Remove TODO - it already must always be a Node

Ignore error

Add missing types

Update phpstan to level 3

Add phpstan to dev reqs

No need to install phpstan independently

Do not override unary expression operand

It seems to me that the operand can be any expression

Added token to operand types -- should this be MissingToken?

Include tokens in return types

ExpressionStatement => EchoStatement

It seems this is always an EchoStatement not an ExpressionStatement

unaryExpressionOrHigher can return a ThrowExpression

Remove overridden property

Add Token to union

Remove QualifiedName and rename local variable

Remove unused import

Add return types

Remove trailing whitespace

Add MissingToken type

Ignore "should not happen" statement

Bump to level 4

Remove !is_null conditional branch - it always returns Node

NamespaceUseDeclaration#useClauses is technically nullable

NamespaceUseGroupCluase#functionOrConst can be NULL

Add TODO

Removed redundant condition (check)

Add return type

Add retutn type, remove inaccurate docblock

Fix bug with get string literal text, as it returned the quotes

Ignore assumed false-positive from PHPStan

If allowEmptyElements if `false`...

... then it MUST be true in the right hand side of ||

backslash can be NULL

BinaryExpresionOrHigher can return MIssingToken

Ignoring error to be safe (as commented) and more type hints

Set level to 4

Add explanation
2023-01-05 23:50:26 +00:00
..
api v0.1.0: Raise minimum php version, change some AST representations 2021-04-29 17:11:53 -04:00
cases Make HaltCompilerStatement inline html start=fullStart 2022-09-25 19:05:27 -04:00
unit/Node Use PHPDoc `@param string ...$classNames` 2023-01-05 23:50:26 +00:00
CallbackTestListener.php [WIP] v1.0.0 proposal 2021-04-29 16:38:40 -04:00
FilePositionMapTest.php Add license to FilePositionMapTest.php 2018-02-14 10:39:41 -08:00
LexerInvariantsTest.php Convert array()/list() to short array `[]` with phpcbf 2021-04-29 17:30:38 -04:00
LexicalGrammarTest.php Fix PHP 8.2 deprecation notices in tolerant-php-parser 2021-11-27 13:41:27 -05:00
ParserFrameworkValidationTests.php Speed up running the framework validation test suite 2022-08-26 18:59:33 -04:00
ParserGrammarTest.php Fix PHP 8.2 deprecation notices in tolerant-php-parser 2021-11-27 13:41:27 -05:00
ParserInvariantsTest.php Convert array()/list() to short array `[]` with phpcbf 2021-04-29 17:30:38 -04:00
generate_spec_tests.php Fixes #224: Use DIRECTORY_SEPARATOR instead 2018-02-18 22:34:14 -08:00
skipped.json Fix #146 2017-06-12 17:08:39 -07:00
skippedLexical.json add skipped lexical grammar tests 2016-12-23 21:16:41 -08:00