Skip to content

Commit b29b16d

Browse files
authored
[CLEANUP] Make annotations for OutputFormat more specific (#1200)
1 parent a0b9a78 commit b29b16d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/OutputFormat.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ final class OutputFormat
176176
private $nextLevelFormat;
177177

178178
/**
179-
* @var int
179+
* @var int<0, max>
180180
*/
181181
private $indentationLevel = 0;
182182

@@ -643,6 +643,8 @@ public function setRenderComments(bool $renderComments): self
643643
}
644644

645645
/**
646+
* @return int<0, max>
647+
*
646648
* @internal
647649
*/
648650
public function getIndentationLevel(): int
@@ -651,6 +653,8 @@ public function getIndentationLevel(): int
651653
}
652654

653655
/**
656+
* @param int<1, max> $numberOfTabs
657+
*
654658
* @return $this fluent interface
655659
*/
656660
public function indentWithTabs(int $numberOfTabs = 1): self
@@ -659,6 +663,8 @@ public function indentWithTabs(int $numberOfTabs = 1): self
659663
}
660664

661665
/**
666+
* @param int<1, max> $numberOfSpaces
667+
*
662668
* @return $this fluent interface
663669
*/
664670
public function indentWithSpaces(int $numberOfSpaces = 2): self

0 commit comments

Comments
 (0)