Re: PHPDoc and NULL values
| From: | Derick Rethans | Date: | Fri, 18 Oct 2002 14:07:55 +0000 |
| Subject: | Re: PHPDoc and NULL values | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10113@lists.php.net to get a copy of this message | ||
On Thu, 17 Oct 2002, Adam Morton wrote:
> 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.
Can you provide a full source file, and the line how you run PHPDoc?
I couldn't reproduce it with this info only.
regards,
Derick
--
---------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions
--------------[ if you hold a unix shell to your ear, do you hear the c? ]-