Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fedf211

Browse files
Fix
1 parent cb802d0 commit fedf211

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

‎src/Printer/Printer.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,6 @@ private function printArrayFormatPreserving(array $nodes, array $originalNodes,
534534
throw new LogicException();
535535
}
536536

537-
if ($itemEndPos < $itemStartPos) {
538-
return null;
539-
}
540-
541537
$result .= $originalTokens->getContentBetween($tokenIndex, $itemStartPos);
542538

543539
if (count($delayedAdd) > 0) {
@@ -746,10 +742,6 @@ private function printNodeFormatPreserving(Node $node, TokenIterator $originalTo
746742
throw new LogicException();
747743
}
748744

749-
if ($endPos < $startPos) {
750-
return $this->print($node);
751-
}
752-
753745
$result = '';
754746
$pos = $startPos;
755747
$subNodeNames = array_keys(get_object_vars($node));

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /