-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
While parsing the source for a plugin, I came across a case where the DocBlock for a hook isn't parsed correctly.
The code contains the following:
/**
* Filters the filename to be required.
*
* @since 1.2.3
*
* @param string $filename The filename to require.
*/
require apply_filters( 'my-filter', 'some filename' );
The hook gets imported (including the description), but for some reason the @since tag is not. Instead, @since tags from the file-level DocBlock are associated with the hook.
Changing the code to the equivalent:
/**
* Filters the filename to be required.
*
* @since 1.2.3
*
* @param string $filename The filename to require.
*/
$filename = apply_filters( 'my-filter', 'some filename' );
require $filename;
works just fine.
Metadata
Metadata
Assignees
Labels
No labels