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

Bug #16740 False positives for heredoc strings and unused parameter sniff
Submitted: 2009-10-25 22:32 UTC
From: sebastian Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.2.0)
PHP Version: 5.3.0 OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2009-10-25 22:32 UTC] sebastian (Sebastian Bergmann)
Description: ------------ A function or method parameter that is only used in an heredoc string is reported as not being used. Test script: --------------- <?php function foo($bar) { print <<<BAZ ... $bar ... BAZ } Expected result: ---------------- No violation. Actual result: -------------- FILE: /home/sb/test.php -------------------------------------------------------------------------------- FOUND 0 ERROR(S) AND 1 WARNING(S) AFFECTING 1 LINE(S) -------------------------------------------------------------------------------- 2 | WARNING | The method parameter $bar is never used --------------------------------------------------------------------------------

Comments

 [2010-01-14 09:45 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.