Skip to content

Commit

Permalink
change error level to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Jan 15, 2024
1 parent 5643cf5 commit f34ec2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/running_psalm/error_levels.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Issue/RiskyTruthyFalsyComparison.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f34ec2c

Please sign in to comment.