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

Bug #14249 wrong detection of scope_opener
Submitted: 2008-06-27 03:08 UTC Modified: 2008-06-30 20:25 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  


 [2008-06-27 03: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-06-30 20: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.