Re: Re: PHPDoc and NULL values

From: Date: Fri, 18 Oct 2002 15:06:55 +0000
Subject: Re: Re: PHPDoc and NULL values
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10116@lists.php.net to get a copy of this message
Here is a link to the source files being parsed: http://res1.stddev.appstate.edu/horde/chora/cvs.php/phpws_core/core?login=2 Here is a link to the files generated by phpdoc: http://res1.stddev.appstate.edu/~adam/phpdoc/ There are a couple of warnings that are legit and I just need to fix but as you can see in the report, there are errors about some of the types not being correct where I have set the default value to NULL. Also the classes don't seem to be falling under the right packages even though I have the @package markup in each file. I'm pretty sure I have the correct syntax. Adam > 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? > ]- > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php --------------------------------- Adam Morton Developer - Web Technology Group Appalachian State University http://phpwebsite.appstate.edu

« previous php.pear.dev (#10116) next »