PHPDoc and NULL values
| From: | Adam Morton | Date: | Thu, 17 Oct 2002 14:38:26 +0000 |
| Subject: | PHPDoc and NULL values | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-10106@lists.php.net to get a copy of this message | ||
When setting default values for parameters in a function header, PHPDoc
generates all kinds of warnings if you use NULL as your default value:
/**
* @param string $one A string variable.
* @param array $two An array of stuff.
*/
function foo($one=NULL, $two=NULL)
This generate warnings that the value you're setting your parameters to
does not match the type given in the markup. NULL should be a valid value
for any type.
Adam
---------------------------------
Adam Morton
Developer - Web Technology Group
Appalachian State University
http://phpwebsite.appstate.edu