Skip to content

Commit 59f08a3

Browse files
Remove If_ from return typr
1 parent d22b535 commit 59f08a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getNodeTypes(): array
6767
/**
6868
* @param ConstFetch|BitwiseOr|If_ $node
6969
*/
70-
public function refactor(Node $node): Expr|If_|null
70+
public function refactor(Node $node): Expr|null
7171
{
7272
if ($node instanceof If_) {
7373
$this->markConstantKnownInInnerStmts($node);

rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ public function getNodeTypes(): array
102102

103103
/**
104104
* @param ConstFetch|BitwiseOr|If_|TryCatch|Expression $node
105-
* @return null|Expr|If_|array<Expression|If_>
105+
* @return null|Expr|array<Expression|If_>
106106
*/
107-
public function refactor(Node $node): null|Expr|If_|array
107+
public function refactor(Node $node): null|Expr|array
108108
{
109109
if ($node instanceof If_) {
110110
$this->markConstantKnownInInnerStmts($node);

0 commit comments

Comments
 (0)