From a054bb07fa7fb9153c720ee1494b3dc78e9b4629 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Wed, 19 Mar 2025 21:25:17 +0100 Subject: [PATCH] [CLEANUP] Improve type annotations in `LineName` --- src/Value/LineName.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Value/LineName.php b/src/Value/LineName.php index 9afe6703..791f0cc3 100644 --- a/src/Value/LineName.php +++ b/src/Value/LineName.php @@ -12,7 +12,7 @@ class LineName extends ValueList { /** - * @param array $components + * @param array $components * @param int<0, max> $lineNumber */ public function __construct(array $components = [], int $lineNumber = 0) @@ -49,6 +49,9 @@ public static function parse(ParserState $parserState): LineName return new LineName($names, $parserState->currentLine()); } + /** + * @return non-empty-string + */ public function render(OutputFormat $outputFormat): string { return '[' . parent::render(OutputFormat::createCompact()) . ']';