We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bd0a5f commit 88d5b8cCopy full SHA for 88d5b8c
src/Rules/Comparison/ConstantConditionRuleHelper.php
@@ -18,16 +18,6 @@ public function __construct(
18
{
19
}
20
21
- public function shouldReportAlwaysTrueByDefault(Expr $expr): bool
22
- {
23
- return $expr instanceof Expr\BooleanNot
24
- || $expr instanceof Expr\BinaryOp\BooleanOr
25
- || $expr instanceof Expr\BinaryOp\BooleanAnd
26
- || $expr instanceof Expr\Ternary
27
- || $expr instanceof Expr\Isset_
28
- || $expr instanceof Expr\Empty_;
29
- }
30
-
31
public function shouldSkip(Scope $scope, Expr $expr): bool
32
33
if (
0 commit comments