Skip to content

Commit fa9825c

Browse files
committed
[CLEANUP] Make annotations for OutputFormat more specific
1 parent 45cd62f commit fa9825c

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

@@ -639,6 +639,8 @@ public function setRenderComments(bool $renderComments): self
639639
}
640640

641641
/**
642+
* @return int<0, max>
643+
*
642644
* @internal
643645
*/
644646
public function getIndentationLevel(): int
@@ -647,6 +649,8 @@ public function getIndentationLevel(): int
647649
}
648650

649651
/**
652+
* @param int<1, max> $numberOfTabs
653+
*
650654
* @return $this fluent interface
651655
*/
652656
public function indentWithTabs(int $numberOfTabs = 1): self
@@ -655,6 +659,8 @@ public function indentWithTabs(int $numberOfTabs = 1): self
655659
}
656660

657661
/**
662+
* @param int<1, max> $numberOfSpaces
663+
*
658664
* @return $this fluent interface
659665
*/
660666
public function indentWithSpaces(int $numberOfSpaces = 2): self

0 commit comments

Comments
 (0)