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

Bug #14249 wrong detection of scope_opener
Submitted: 2008-06-27 08:08 UTC
From: oppi Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.0.1)
PHP Version: 5.2.6 OS: windows xp
Roadmaps: 1.1.0    
Subscription  
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:
MUST BE VALID
Solve the problem : 46 - 19 = ?

 
 [2008-06-27 08:08 UTC] oppi (Markus Opahle)
Description: ------------ parse the following code with phpcs: Test script: --------------- if(true) $someObject->{$name}; Expected result: ---------------- the token of the if statement has no scope_opener (and no scope_closer) Actual result: -------------- phpcs detects the opening curly brace "{" in "$someObject->{$name};" as scope_opener

Comments

 [2008-07-01 01:25 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.