Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.2

Bug #18235 Invalid error generation in Squiz.Commenting.FunctionCommentThrowTag
Submitted: 2011-02-03 19:49 UTC
From: weregod Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.3.0RC2)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2011-02-03 19:49 UTC] weregod (Anton Leontiev)
Description: ------------ Squiz.Commenting.FunctionCommentThrowTag sniffer generates invalid error about @throw tag Test script: --------------- <?php /** * Foo function. * * @return void * @throws Exception Suddenly. */ function foo(){ /** * @var FooClass */ $foo = FooFactory::factory(); throw new Exception; } Expected result: ---------------- No errors Actual result: -------------- ERROR | Missing @throws tag in function comment

Comments

 [2011-02-07 11:22 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.