Re: cvs: pear /LiveUser LiveUser.php

From: Date: Tue, 08 Nov 2005 23:43:40 +0000
Subject: Re: cvs: pear /LiveUser LiveUser.php
References: 1 2  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36176@lists.php.net to get a copy of this message
Lukas Kahwe Smith wrote:
Arnaud Limbourg wrote:
     /**
      * Wrapper method to get the Error Stack
      *
-     * @return array  an array of the errors or
-     *                false if there are no errors
+     * @return array|false  an array of the errors or
+     *                      false if there are no errors
ah .. so you should use this syntax instead of "mixed"? also should be use the given object class name instead of "object" ?
Absolutely, using "object blah" just slows down parsing. In addition, phpDocumentor recognizes "|" as a type separator, and will even hyperlink to the docs of classes used so if you have a local parse of "PEAR_Error|boolean" it would link to the docs for PEAR_Error Greg

« previous php.pear.cvs (#36176) next »