Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.6.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)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 41 + 31 = ?

 [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


 [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 by the end of next Sunday (CET). If this was a problem with the 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.