Merge 5.x #13438
Annotations
10 errors
UndefinedClass:
src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php#L692
src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php:692:53: UndefinedClass: Class, interface or enum named Decimal\Decimal does not exist (see https://psalm.dev/019)
|
MixedArgument:
src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php#L692
src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php:692:53: MixedArgument: Argument 1 of Psalm\Type\Atomic\TNamedObject::__construct cannot be mixed, expecting string (see https://psalm.dev/030)
|
MixedAssignment:
src/Psalm/Internal/Cli/Psalm.php#L659
src/Psalm/Internal/Cli/Psalm.php:659:9: MixedAssignment: Unable to determine the type that $error_baseline is being assigned to (see https://psalm.dev/032)
|
UndefinedConstant:
src/Psalm/Internal/Cli/Psalm.php#L660
src/Psalm/Internal/Cli/Psalm.php:660:41: UndefinedConstant: Constant Psalm\Config::DEFAULT_BASELINE_NAME is not defined (see https://psalm.dev/020)
|
MixedArgument:
src/Psalm/Internal/Cli/Psalm.php#L665
src/Psalm/Internal/Cli/Psalm.php:665:17: MixedArgument: Argument 2 of Psalm\ErrorBaseline::read cannot be mixed|string, expecting string (see https://psalm.dev/030)
|
MixedArgument:
src/Psalm/Internal/Cli/Psalm.php#L673
src/Psalm/Internal/Cli/Psalm.php:673:13: MixedArgument: Argument 2 of Psalm\ErrorBaseline::create cannot be mixed|string, expecting string (see https://psalm.dev/030)
|
RiskyTruthyFalsyComparison:
src/Psalm/Internal/Codebase/ClassLikes.php#L1958
src/Psalm/Internal/Codebase/ClassLikes.php:1958:25: RiskyTruthyFalsyComparison: Operand of type array<string, Psalm\Internal\MethodIdentifier>|null contains type array<string, Psalm\Internal\MethodIdentifier>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
RedundantCondition:
src/Psalm/Internal/Diff/FileStatementsDiffer.php#L139
src/Psalm/Internal/Diff/FileStatementsDiffer.php:139:29: RedundantCondition: Type non-empty-list<string> for $name_parts is never falsy (see https://psalm.dev/122)
|
RedundantCondition:
src/Psalm/Internal/Diff/FileStatementsDiffer.php#L167
src/Psalm/Internal/Diff/FileStatementsDiffer.php:167:29: RedundantCondition: Type non-empty-list<string> for $name_parts is never falsy (see https://psalm.dev/122)
|
RedundantCondition:
src/Psalm/Internal/Diff/NamespaceStatementsDiffer.php#L120
src/Psalm/Internal/Diff/NamespaceStatementsDiffer.php:120:29: RedundantCondition: Type non-empty-list<string> for $name_parts is never falsy (see https://psalm.dev/122)
|