From 6e4fe96440bfb2f8a872b48e069b40d45e6bbe10 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 16 Feb 2025 15:57:46 +0100 Subject: [PATCH 1/2] [TASK] Narrow the some type annotations in `OutputFormatter` --- src/OutputFormatter.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/OutputFormatter.php b/src/OutputFormatter.php index e7f2af64..4b1a5dad 100644 --- a/src/OutputFormatter.php +++ b/src/OutputFormatter.php @@ -87,7 +87,7 @@ public function spaceAfterSelectorSeparator(): string } /** - * @param string $sSeparator + * @param non-empty-string $sSeparator */ public function spaceBeforeListArgumentSeparator($sSeparator): string { @@ -97,7 +97,7 @@ public function spaceBeforeListArgumentSeparator($sSeparator): string } /** - * @param string $sSeparator + * @param non-empty-string $sSeparator */ public function spaceAfterListArgumentSeparator($sSeparator): string { @@ -136,6 +136,7 @@ public function safely($cCode) /** * Clone of the `implode` function, but calls `render` with the current output format instead of `__toString()`. * + * @param non-empty-string $sSeparator * @param array $aValues * @param bool $bIncreaseLevel */ From eac45ae04ca7eddb967ad3d1e8b5f9287164d32a Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 17 Feb 2025 19:03:42 +0100 Subject: [PATCH 2/2] Changes suggested in review --- src/OutputFormatter.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/OutputFormatter.php b/src/OutputFormatter.php index 4b1a5dad..c414e9e9 100644 --- a/src/OutputFormatter.php +++ b/src/OutputFormatter.php @@ -136,7 +136,6 @@ public function safely($cCode) /** * Clone of the `implode` function, but calls `render` with the current output format instead of `__toString()`. * - * @param non-empty-string $sSeparator * @param array $aValues * @param bool $bIncreaseLevel */