Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.6.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)    
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 : 50 - 1 = ?

 [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: --------------- 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


 [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 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. Was a problem with constants; PHP_CodeSniffer only recognised variables as valid assignments.