Skip to content

Variadic params should always be optional and fix redundant optional variadic annotation #12990

Variadic params should always be optional and fix redundant optional variadic annotation

Variadic params should always be optional and fix redundant optional variadic annotation #12990

Status Failure
Total duration 1m 7s
Artifacts

shepherd.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors
MixedMethodCall: src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php#L821
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php:821:96: MixedMethodCall: Cannot determine the type of $array_type->type_params[1] when calling method isNever (see https://psalm.dev/015)
RiskyTruthyFalsyComparison: src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php#L999
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php:999:59: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php#L1003
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php:1003:22: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php#L1061
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php:1061:16: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
ArgumentTypeCoercion: src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php#L1310
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php:1310:84: ArgumentTypeCoercion: Argument 2 of Psalm\Codebase::getFunctionLikeStorage expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
RiskyTruthyFalsyComparison: src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php#L1778
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php:1778:50: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
TooFewArguments: src/Psalm/Internal/Codebase/ClassLikes.php#L957
src/Psalm/Internal/Codebase/ClassLikes.php:957:21: TooFewArguments: Possibly too few arguments for Psalm\Internal\MethodIdentifier::__construct - expecting 2 but possibly only 1 provided (see https://psalm.dev/025)
build
Process completed with exit code 2.