From 804f28ea8abef92ba4d68e89b0d649cd72b4f683 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 24 Jan 2024 09:24:29 +0100 Subject: [PATCH] CommentParser: Add var type hint --- library/Icinga/Cli/Documentation/CommentParser.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Icinga/Cli/Documentation/CommentParser.php b/library/Icinga/Cli/Documentation/CommentParser.php index 410484897..778a8cc25 100644 --- a/library/Icinga/Cli/Documentation/CommentParser.php +++ b/library/Icinga/Cli/Documentation/CommentParser.php @@ -10,6 +10,7 @@ class CommentParser protected $raw; protected $plain; protected $title; + /** @var array $paragraphs */ protected $paragraphs = array(); public function __construct($raw) @@ -37,6 +38,7 @@ class CommentParser $p = null; foreach (preg_split('~\n~', $plain) as $line) { // Strip * at line start + /** @var string $line */ $line = preg_replace('~^\s*\*\s?~', '', $line); $line = rtrim($line); if ($this->title === null) {