Inspectopedia
 
2024.3

Type tag without variable name

Info
New
Last modified: 03 December 2024

Reports the PHPDoc type tags (@var, @type, @param) that are provided without a specified variable/parameter name. Such tags do not provide any type information for expressions and should be either deleted or expanded to include a concrete variable name for which the type is provided.