Skip to content

Add nikic/php-parser v5 support #13315

Add nikic/php-parser v5 support

Add nikic/php-parser v5 support #13315

Triggered via pull request August 9, 2024 17:00
Status Failure
Total duration 1m 6s
Artifacts

shepherd.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
UnusedPsalmSuppress: src/Psalm/CodeLocation/ParseErrorLocation.php#L20
src/Psalm/CodeLocation/ParseErrorLocation.php:20:65: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
UnusedPsalmSuppress: src/Psalm/CodeLocation/ParseErrorLocation.php#L22
src/Psalm/CodeLocation/ParseErrorLocation.php:22:65: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
DeprecatedConstant: src/Psalm/Internal/Analyzer/ClassAnalyzer.php#L1267
src/Psalm/Internal/Analyzer/ClassAnalyzer.php:1267:36: DeprecatedConstant: Constant PhpParser\Node\Stmt\Class_::MODIFIER_PUBLIC is deprecated (see https://psalm.dev/170)
PossiblyUnusedMethod: src/Psalm/Internal/Analyzer/FunctionAnalyzer.php#L54
src/Psalm/Internal/Analyzer/FunctionAnalyzer.php:54:28: PossiblyUnusedMethod: Cannot find any calls to method Psalm\Internal\Analyzer\FunctionAnalyzer::analyzeStatement (see https://psalm.dev/087)
UndefinedClass: src/Psalm/Internal/Analyzer/FunctionLike/ReturnTypeCollector.php#L80
src/Psalm/Internal/Analyzer/FunctionLike/ReturnTypeCollector.php:80:34: UndefinedClass: Class, interface or enum named PhpParser\Node\Stmt\Throw_ does not exist (see https://psalm.dev/019)
UnusedClass: src/Psalm/Internal/Analyzer/Statements/Block/SwitchAnalyzer.php#L24
src/Psalm/Internal/Analyzer/Statements/Block/SwitchAnalyzer.php:24:13: UnusedClass: Class Psalm\Internal\Analyzer\Statements\Block\SwitchAnalyzer is never used (see https://psalm.dev/075)
InvalidReturnType: src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php#L695
src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php:695:16: InvalidReturnType: The declared return type 'array<array-key, PhpParser\Node\ArrayItem>|null' for Psalm\Internal\Analyzer\Statements\Block\SwitchCaseAnalyzer::getOptionsFromNestedOr is incorrect, got 'array<array-key, PhpParser\Node\ArrayItem|Psalm\Node\Expr\VirtualArrayItem>|null' (see https://psalm.dev/011)
InvalidReturnStatement: src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php#L713
src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php:713:20: InvalidReturnStatement: The inferred type 'non-empty-array<array-key, PhpParser\Node\ArrayItem|Psalm\Node\Expr\VirtualArrayItem>' does not match the declared return type 'array<array-key, PhpParser\Node\ArrayItem>|null' for Psalm\Internal\Analyzer\Statements\Block\SwitchCaseAnalyzer::getOptionsFromNestedOr (see https://psalm.dev/128)
InvalidArgument: src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php#L737
src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php:737:13: InvalidArgument: Argument 3 of Psalm\Internal\Analyzer\Statements\Block\SwitchCaseAnalyzer::getOptionsFromNestedOr expects array<array-key, PhpParser\Node\ArrayItem>, but non-empty-array<array-key, PhpParser\Node\ArrayItem|Psalm\Node\Expr\VirtualArrayItem> provided (see https://psalm.dev/004)
UnusedClass: src/Psalm/Internal/Analyzer/Statements/BreakAnalyzer.php#L16
src/Psalm/Internal/Analyzer/Statements/BreakAnalyzer.php:16:13: UnusedClass: Class Psalm\Internal\Analyzer\Statements\BreakAnalyzer is never used (see https://psalm.dev/075)