Skip to content

Commit d3fd1c5

Browse files
committed
[CLEANUP] Improve type annotations in LineName
1 parent 45cd62f commit d3fd1c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Value/LineName.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class LineName extends ValueList
1313
{
1414
/**
15-
* @param array<int, Value|string> $components
15+
* @param array<Value|string> $components
1616
* @param int<0, max> $lineNumber
1717
*/
1818
public function __construct(array $components = [], int $lineNumber = 0)
@@ -49,6 +49,9 @@ public static function parse(ParserState $parserState): LineName
4949
return new LineName($names, $parserState->currentLine());
5050
}
5151

52+
/**
53+
* @return non-empty-string
54+
*/
5255
public function render(OutputFormat $outputFormat): string
5356
{
5457
return '[' . parent::render(OutputFormat::createCompact()) . ']';

0 commit comments

Comments
 (0)