I'm using PhpStorm. When I put the following PHPDoc documentation for a function:
/**
* @param $id application identifier
*/
public function foo($id)
And I run the "Quick documentation" (Ctrl + Q) command for the function in PHPStorm, it shows this:
Parameters: App\Models\Application $id identifier
It looks like for some reason, the IDE is interpreting the first word of the parameter description, application, as the type for the parameter. I don't want to specify the type of the parameter (I don't know what it is), I just want to add a brief description about the parameter in the documentation. What should I do?
mixedtype (or some other generic) then. PHPDoc requires type. In your case, IDE treats it as PHPDoc-like syntax where type goes after the name.