Skip to content

Commit 0acc551

Browse files
committed
rector fix
1 parent 0971ffd commit 0acc551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ private function replicateBinaryOp(Node\Expr\BinaryOp $expr, Node\Expr $body): R
323323
{
324324
$newExpr = clone $expr;
325325
// remove the match statement from the binary operation
326-
$this->traverseNodesWithCallable($newExpr, function (Node $node) use ($body): ?Node\Expr {
326+
$this->traverseNodesWithCallable($newExpr, static function (Node $node) use ($body): ?Node\Expr {
327327
if ($node instanceof Match_) {
328328
return $body;
329329
}

0 commit comments

Comments
 (0)