You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hooks/Docs: twentyeleven and twentytwentyone hooks have malformed @param tags — variable name missing #18
PHPStan reports three filters as having 0 @param tags even though @param lines exist in the PHPDoc blocks. The cause is that all three use the format @param type Description — omitting the required $variable_name. PHPStan's PHPDoc parser does not recognize these as valid @param tags.
* @param string The list of classes. Default empty string.
Fix
Add the missing $variable_name to each @param tag:
- * @param int The height and width avatar dimension in pixels. Default 60.+ * @param int $size The height and width avatar dimension in pixels. Default 60.
- * @param int The width for the image attachment size in pixels. Default 848.+ * @param int $width The width for the image attachment size in pixels. Default 848.
- * @param string The list of classes. Default empty string.+ * @param string $classes The list of classes. Default empty string.
Activity
apermo commentedon Mar 8, 2026
is in themes, out of scope