Skip to content

Commit c14de0d

Browse files
committed
[ci-review] Rector Rectify
1 parent 5e4c885 commit c14de0d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rules/Transform/Rector/FuncCall/WrapFuncCallWithPhpVersionIdCheckerRector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ public function refactor(Node $node): null|Node|int
8484
if (! $stmt instanceof Expression) {
8585
continue;
8686
}
87+
8788
if (! $stmt->expr instanceof FuncCall) {
8889
continue;
8990
}
91+
9092
$funcCall = $stmt->expr;
9193

9294
foreach ($this->wrapFuncCallWithPhpVersionIdCheckers as $wrapFuncCallWithPhpVersionIdChecker) {
@@ -148,9 +150,11 @@ private function isWrappedFuncCall(StmtsAwareInterface $stmtsAware): bool
148150
if ($this->getName($childStmt->expr) !== $wrapFuncCallWithPhpVersionIdChecker->getFunctionName()) {
149151
continue;
150152
}
153+
151154
if ($phpVersionId->value !== $wrapFuncCallWithPhpVersionIdChecker->getPhpVersionId()) {
152155
continue;
153156
}
157+
154158
return true;
155159
}
156160

0 commit comments

Comments
 (0)