diff --git a/docs/running_psalm/error_levels.md b/docs/running_psalm/error_levels.md index df53f5227f6..f3df22adb45 100644 --- a/docs/running_psalm/error_levels.md +++ b/docs/running_psalm/error_levels.md @@ -173,7 +173,6 @@ Level 5 and above allows a more non-verifiable code, and higher levels are even - [TooManyArguments](issues/TooManyArguments.md) - [TypeDoesNotContainNull](issues/TypeDoesNotContainNull.md) - [TypeDoesNotContainType](issues/TypeDoesNotContainType.md) -- [RiskyTruthyFalsyComparison](issues/RiskyTruthyFalsyComparison.md) - [UndefinedMagicMethod](issues/UndefinedMagicMethod.md) - [UndefinedMagicPropertyAssignment](issues/UndefinedMagicPropertyAssignment.md) - [UndefinedMagicPropertyFetch](issues/UndefinedMagicPropertyFetch.md) @@ -245,6 +244,7 @@ Level 5 and above allows a more non-verifiable code, and higher levels are even - [RedundantConditionGivenDocblockType](issues/RedundantConditionGivenDocblockType.md) - [RedundantFunctionCallGivenDocblockType](issues/RedundantFunctionCallGivenDocblockType.md) - [ReferenceConstraintViolation](issues/ReferenceConstraintViolation.md) +- [RiskyTruthyFalsyComparison](issues/RiskyTruthyFalsyComparison.md) - [UndefinedTrace](issues/UndefinedTrace.md) - [UnresolvableInclude](issues/UnresolvableInclude.md) - [UnsafeInstantiation](issues/UnsafeInstantiation.md) diff --git a/src/Psalm/Issue/RiskyTruthyFalsyComparison.php b/src/Psalm/Issue/RiskyTruthyFalsyComparison.php index 9150aa30b8c..68ab4e1322b 100644 --- a/src/Psalm/Issue/RiskyTruthyFalsyComparison.php +++ b/src/Psalm/Issue/RiskyTruthyFalsyComparison.php @@ -6,7 +6,7 @@ final class RiskyTruthyFalsyComparison extends CodeIssue { - public const ERROR_LEVEL = 4; + public const ERROR_LEVEL = 2; public const SHORTCODE = 356; public function __construct(string $message, CodeLocation $code_location, ?string $dupe_key)