Allow specifying a custom default template type/begin implementing @satisfies
#12549
Annotations
10 errors
RiskyTruthyFalsyComparison:
src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php#L495
src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php:495:17: 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/NewAnalyzer.php#L551
src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php:551:19: 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)
|
PossiblyUnusedProperty:
src/Psalm/Internal/Type/ParseTree/ConditionalTree.php#L14
src/Psalm/Internal/Type/ParseTree/ConditionalTree.php:14:55: PossiblyUnusedProperty: Cannot find any references to property Psalm\Internal\Type\ParseTree\ConditionalTree::$condition (see https://psalm.dev/149)
|
PossiblyUnusedProperty:
src/Psalm/Internal/Type/ParseTree/TemplateIsTree.php#L14
src/Psalm/Internal/Type/ParseTree/TemplateIsTree.php:14:47: PossiblyUnusedProperty: Cannot find any references to property Psalm\Internal\Type\ParseTree\TemplateIsTree::$param_name (see https://psalm.dev/149)
|
PossiblyUnusedProperty:
src/Psalm/Internal/Type/ParseTree/Value.php#L18
src/Psalm/Internal/Type/ParseTree/Value.php:18:20: PossiblyUnusedProperty: Cannot find any references to property Psalm\Internal\Type\ParseTree\Value::$offset_start (see https://psalm.dev/149)
|
PossiblyUnusedProperty:
src/Psalm/Internal/Type/ParseTree/Value.php#L19
src/Psalm/Internal/Type/ParseTree/Value.php:19:20: PossiblyUnusedProperty: Cannot find any references to property Psalm\Internal\Type\ParseTree\Value::$offset_end (see https://psalm.dev/149)
|
MixedAssignment:
src/Psalm/Internal/Type/ParseTreeCreator.php#L585
src/Psalm/Internal/Type/ParseTreeCreator.php:585:9: MixedAssignment: Unable to determine the type that $new_parent_leaf is being assigned to (see https://psalm.dev/032)
|
UndefinedClass:
src/Psalm/Internal/Type/ParseTreeCreator.php#L585
src/Psalm/Internal/Type/ParseTreeCreator.php:585:32: UndefinedClass: Class, interface or enum named Psalm\Internal\Type\ParseTree\TypeIsTree does not exist (see https://psalm.dev/019)
|
MixedAssignment:
src/Psalm/Internal/Type/ParseTreeCreator.php#L586
src/Psalm/Internal/Type/ParseTreeCreator.php:586:9: MixedAssignment: Unable to determine the type that $this->current_leaf->parent is being assigned to (see https://psalm.dev/032)
|
MixedPropertyAssignment:
src/Psalm/Internal/Type/ParseTreeCreator.php#L587
src/Psalm/Internal/Type/ParseTreeCreator.php:587:9: MixedPropertyAssignment: $new_parent_leaf of type mixed cannot be assigned to (see https://psalm.dev/033)
|