ce5acf3186
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 |
||
---|---|---|
.. | ||
api | ||
cases | ||
unit/Node | ||
CallbackTestListener.php | ||
FilePositionMapTest.php | ||
LexerInvariantsTest.php | ||
LexicalGrammarTest.php | ||
ParserFrameworkValidationTests.php | ||
ParserGrammarTest.php | ||
ParserInvariantsTest.php | ||
generate_spec_tests.php | ||
skipped.json | ||
skippedLexical.json |