CommentParser: Add var type hint

This commit is contained in:
Sukhwinder Dhillon 2024-01-24 09:24:29 +01:00 committed by Johannes Meyer
parent 31e3455c79
commit 804f28ea8a
1 changed files with 2 additions and 0 deletions

View File

@ -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) {