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

Bug #16175 Bug in Squiz-IncrementDecrementUsageSniff
Submitted: 2009-05-03 16:18 UTC
From: dirkthomas Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.2.0RC1)
PHP Version: 5.2.9 OS: Windows Vista
Roadmaps: (Not assigned)    
Subscription  


 [2009-05-03 16:18 UTC] dirkthomas (Dirk Thomas)
Description: ------------ Issue with the Squiz-IncrementDecrementUsageSniff reporting a false positive on the given source code. Test script: --------------- $quoted = 1 - $quoted; Expected result: ---------------- No warning/error from the sniff. Actual result: -------------- Decrement operators should be used where possible; found "$quoted = 1 - $quoted;" but expected "$quoted--"

Comments

 [2009-05-05 12:27 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
This bug has been fixed in CVS. 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.