Re: Coding standards / @return

From: Date: Sat, 07 Jul 2007 06:26:32 +0000
Subject: Re: Coding standards / @return
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47252@lists.php.net to get a copy of this message
Quoting Christian Weiske <cweiske@cweiske.de>:
phpcs requires a @return tag even for getter methods. The coding standards show the tag in the sample file in which the method actually returns something - so do we really need the tag everytime?
I think you would, since it defines the expected return type. If the function doesn't return anything, then I'd presume it'd read "@return void" to indicate that, with no further comment necessary. Adam -- Adam Harvey PEAR Profile: <http://pear.php.net/user/aharvey> Blog: <http://xn--9bi.net/>

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