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 0cf7a67 commit f45af36Copy full SHA for f45af36
src/generate.php
@@ -199,12 +199,7 @@ function( array $matches ) : string {
199
foreach ( $docblock->getTags() as $i => $tag ) {
200
$content = '';
201
202
- if ( method_exists( $tag, 'getVersion' ) ) {
203
- $version = $tag->getVersion();
204
- if ( ! empty( $version ) ) {
205
- $content = $version;
206
- }
207
- } else {
+ if ( ! method_exists( $tag, 'getVersion' ) ) {
208
$content = $tag->getDescription();
209
$content = \WP_Parser\format_description( preg_replace( '#\n\s+#', ' ', $content ) );
210
}
0 commit comments