Skip to content

Commit

Permalink
[automated] Apply Coding Standard (#6627)
Browse files Browse the repository at this point in the history
Co-authored-by: TomasVotruba <[email protected]>
  • Loading branch information
TomasVotruba and TomasVotruba authored Dec 22, 2024
1 parent 351e4b7 commit 2291593
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ static function (Node $node): int|null|Node {

$node->setAttribute(AttributeKey::IS_BYREF_RETURN, true);
return $node;
});
}
);

return null;
}
Expand Down
4 changes: 2 additions & 2 deletions src/PhpParser/Printer/BetterStandardPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ protected function p(
if ($originalNode instanceof Match_) {
$subNodeNames = $node->getSubNodeNames();
foreach ($subNodeNames as $subNodeName) {
while ($originalNode->$subNodeName instanceof AlwaysRememberedExpr) {
$originalNode->$subNodeName = $originalNode->$subNodeName->getExpr();
while ($originalNode->{$subNodeName} instanceof AlwaysRememberedExpr) {
$originalNode->{$subNodeName} = $originalNode->{$subNodeName}->getExpr();
}
}
}
Expand Down

0 comments on commit 2291593

Please sign in to comment.