Skip to content

[6.x] Support @param-closure-this docblock tag #15669

[6.x] Support @param-closure-this docblock tag

[6.x] Support @param-closure-this docblock tag #15669

Triggered via pull request May 18, 2026 21:10
Status Failure
Total duration 1m 14s
Artifacts

shepherd.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors
build
Process completed with exit code 2.
UnusedBaselineEntry: src/Psalm/Internal/Analyzer/ClosureAnalyzer.php#L0
src/Psalm/Internal/Analyzer/ClosureAnalyzer.php:0:0: UnusedBaselineEntry: Baseline for issue "RiskyTruthyFalsyComparison" has 1 extra entry. (see https://psalm.dev/316)
ImpureMethodCall: src/Psalm/Storage/FunctionLikeParameter.php#L103
src/Psalm/Storage/FunctionLikeParameter.php:103:64: ImpureMethodCall: Cannot call a possibly-mutating method Psalm\Type\TypeVisitor::traverse from a mutation-free context (see https://psalm.dev/203)
RiskyTruthyFalsyComparison: src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockScanner.php#L1493
src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockScanner.php:1493:13: RiskyTruthyFalsyComparison: Operand of type array<string, non-empty-array<string, Psalm\Type\Union>>|null contains type array<string, non-empty-array<string, Psalm\Type\Union>>, 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#L1850
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php:1850:25: RiskyTruthyFalsyComparison: Operand of type lowercase-string|null contains type lowercase-string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
PossiblyUndefinedArrayOffset: src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php#L593
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php:593:29: PossiblyUndefinedArrayOffset: Possibly undefined array key (see https://psalm.dev/167)
MixedAssignment: src/Psalm/Internal/Analyzer/ClosureAnalyzer.php#L93
src/Psalm/Internal/Analyzer/ClosureAnalyzer.php:93:9: MixedAssignment: Unable to determine the type that $bound_this_type is being assigned to (see https://psalm.dev/032)