We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a1b31 commit 6d590c8Copy full SHA for 6d590c8
libs/php-utils/src/PhpDoc.php
@@ -25,9 +25,10 @@ class PhpDoc
25
* - 'allow' // only allowed tags
26
* - 'ignore' // ignored tags
27
* - 'default' => 'description', // default tag name, first line text will attach to it.
28
+ * @param array $defaults
29
* @return array The parsed tags
30
*/
- public static function getTags(string $comment, array $options = []): array
31
+ public static function getTags(string $comment, array $options = [], array$defaults = []): array
32
{
33
if (!$comment = \trim($comment, "/ \n")) {
34
return [];
@@ -74,7 +75,7 @@ public static function getTags(string $comment, array $options = []): array
74
75
}
76
77
- return $tags;
78
+ return $defaults ? \array_merge($defaults, $tags) :$tags;
79
80
81
/**
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments