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

Bug #10980 Incorrect warnings for euqals sign
Submitted: 2007-05-08 13:18 UTC
From: troehr Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 0.5.0)
PHP Version: 5.2.1 OS: Win XP SP2
Roadmaps: (Not assigned)    
Subscription  


 [2007-05-08 13:18 UTC] troehr (Torsten Roehr)
Description: ------------ First of all: cool package! Unfortunately, certain lines of code trigger incorrect warnings regarding the position of the equal sign. See sample code link below. Best regards, Torsten Roehr Test script: --------------- http://phpfi.com/232681 Expected result: ---------------- No warnings. Actual result: -------------- FOUND 0 ERROR(S) AND 2 WARNING(S) AFFECTING 2 LINE(S) ----------------------------------------------------- 8 | WARNING | Equals sign not aligned correctly; expected 1 space but found -128 spaces 22 | WARNING | Equals sign not aligned correctly; expected 1 space but found 10 spaces

Comments

 [2007-05-09 05:38 UTC] squiz (Greg Sherwood)
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. Was a problem with constants; PHP_CodeSniffer only recognised variables as valid assignments.