Skip to content

Commit 6b588e6

Browse files
committed
[DowngradePhp80] Add DowngradeSubstrFalsyRector
1 parent 87d61c0 commit 6b588e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/DowngradePhp80/Rector/FuncCall/DowngradeSubstrFalsyRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function refactor(Node $node): ?Node
5252
}
5353

5454
if ($node instanceof Ternary) {
55-
if ($node->if instanceof Expr) {
55+
if (! $node->if instanceof Expr) {
5656
$node->cond->setAttribute(self::IS_UNCASTABLE, true);
5757
}
5858

0 commit comments

Comments
 (0)