Re: Page-level DocBlock precedes ..., use another DocBlock to document the source element

From: Date: Sun, 03 Sep 2006 17:19:21 +0000
Subject: Re: Page-level DocBlock precedes ..., use another DocBlock to document the source element
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25060@lists.php.net to get a copy of this message
Thomas Anderson wrote: > Say I have a file - test.php - with the following contents: > > <?php > /** > * Test > * > * Description > * > * Using this class can be very helpful for several reasons. etc. etc. > * > * @category A > * @package B > * > */ > > /**#@+ > * Constants > */ > define('A',0); > define('B',0); > /**#@-*/ > ?> > > When I try to run phpDocumentor on it, I get the following warning: > > WARNING in test.php on line 16: Page-level DocBlock precedes "define A", > use > another DocBlock to document the source element > > I don't know what this means. How could I rewrite the above to make it not > give the warning? > <?php /** * Test * * Description * * Using this class can be very helpful for several reasons. etc. etc. * * @category A * @package B * */ /**#@+ * Constants */ /** * A is used for this thing */ define('A',0); /** * B is used for this thing */ define('B',0); /**#@-*/ ?> "constants" isn't exactly useful documentation, since they are grouped under "constants" in the generated docs, and define() is pretty obviously creating a constant, are you sure you need that? Greg

« previous php.pear.general (#25060) next »