Fix FunctionLikeAnalyzer (remove ->templates access) #194
Annotations
10 errors
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Loading