Top "Phpdoc" questions

phpDocumentor (phpdoc) is an automatic code-documentation tool for PHP, based on Javadoc.

Why do I get a PHPDoc warning in PhpStorm over this code

I can't understand why PhpStorm gives me the following warning PHPDoc comment does not match function or method signature over …

php warnings phpdoc phpstorm
php / phpDoc - @return instance of $this class?

How do I mark a method as "returns an instance of the current class" in my phpDoc? In the following …

php netbeans phpdoc
PHPDoc: Typehint in nested arrays (with e.g. 2 dimensions)

Is there a correct way to document values/objects in arrays which are within another dimension? Normally an array will …

php arrays phpdoc code-documentation
Is there a PHPCS standard targeting PHP docblocks?

Is there a PHPCS coding standard that would check that proper annotations (@param, @return, @throws, etc.) are present in a …

php phpdoc codesniffer
Best way to document (phpdoc) generators (methods that yield)

What is the best way to document, for phpdocumentor2, a method that is a generator. I don't think @return really …

php generator phpdoc php-5.5
How can I use PHPDoc to type-hint the parameters of a Callable?

I have a method that accepts a callback as a parameter. I would like to provide a parameter signature for …

php phpstorm phpdoc
Fill @version tag with subversion in Eclipse

I would like to fill the comment tag @version with Subclipse or Subversion in Eclipse. CVS has done this automatically …

eclipse svn subclipse phpdoc
Auto complete for a variable inside a foreach

I have the following code: class Orders{ /** * * @var Supplier */ private $suppliers; //Array of Supplier function loopAllSuppliers(){ foreach($this->suppliers …

php netbeans autocomplete foreach phpdoc
Any tutorials on how to use phpDocumentor?

I want to start using phpDocumentor but I'm finding it hard going - the web interface is not playing nicely …

php phpdoc
PHPDoc for variable-length arrays of arguments

Is there a syntax for documenting functions which take a single configuration array, rather than individual parameters? I'm thinking specifically …

php codeigniter comments phpdoc