Skip to content

Fix FunctionLikeAnalyzer (remove ->templates access) #194

Fix FunctionLikeAnalyzer (remove ->templates access)

Fix FunctionLikeAnalyzer (remove ->templates access) #194

Triggered via push April 28, 2024 14:46
Status Failure
Total duration 1m 0s
Artifacts

shepherd.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PossiblyUnusedMethod: src/Psalm/ContextualTypeResolver.php#L63
src/Psalm/ContextualTypeResolver.php:63:21: PossiblyUnusedMethod: Cannot find any calls to method Psalm\ContextualTypeResolver::getTemplateResult (see https://psalm.dev/087)
RiskyTruthyFalsyComparison: src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsTemplate/ArgumentsTemplateResultCollector.php#L67
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsTemplate/ArgumentsTemplateResultCollector.php:67: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)
RiskyTruthyFalsyComparison: src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsTemplate/ArgumentsTemplateResultCollector.php#L216
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsTemplate/ArgumentsTemplateResultCollector.php:216:54: 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)
MixedAssignment: src/Psalm/Internal/Type/TemplateContextualBoundsCollector.php#L114
src/Psalm/Internal/Type/TemplateContextualBoundsCollector.php:114:13: MixedAssignment: Unable to determine the type that $return_atomic is being assigned to (see https://psalm.dev/032)
UndefinedMethod: src/Psalm/Internal/Type/TemplateContextualBoundsCollector.php#L114
src/Psalm/Internal/Type/TemplateContextualBoundsCollector.php:114:30: UndefinedMethod: Method Psalm\Internal\Type\Comparator\CallableTypeComparator::getcallablefrominvokable does not exist (see https://psalm.dev/022)
UnusedBaselineEntry: src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php#L1
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php:0:0: UnusedBaselineEntry: Baseline for issue "RiskyTruthyFalsyComparison" has 1 extra entry. (see https://psalm.dev/316)
UnusedBaselineEntry: src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php#L1
src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php:0:0: UnusedBaselineEntry: Baseline for issue "RiskyTruthyFalsyComparison" has 3 extra entries. (see https://psalm.dev/316)
UnusedBaselineEntry: src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MissingMethodCallHandler.php#L1
src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MissingMethodCallHandler.php:0:0: UnusedBaselineEntry: Baseline for issue "RiskyTruthyFalsyComparison" has 6 extra entries. (see https://psalm.dev/316)
UnusedBaselineEntry: src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/ExistingAtomicStaticCallAnalyzer.php#L1
src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/ExistingAtomicStaticCallAnalyzer.php:0:0: UnusedBaselineEntry: Baseline for issue "RiskyTruthyFalsyComparison" has 4 extra entries. (see https://psalm.dev/316)
UnusedBaselineEntry: src/Psalm/Internal/Analyzer/Statements/ReturnAnalyzer.php#L1
src/Psalm/Internal/Analyzer/Statements/ReturnAnalyzer.php:0:0: UnusedBaselineEntry: Baseline for issue "RiskyTruthyFalsyComparison" has 3 extra entries. (see https://psalm.dev/316)