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

Bug #18047 incorrect handling of namespace aliases as constants
Submitted: 2010-11-12 16:19 UTC
From: dvino Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.3.0RC1)
PHP Version: 5.3.3 OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2010-11-12 16:19 UTC] dvino (Dmitri Medvedev)
Description: ------------ Generic_Sniffs_NamingConventions_UpperCaseConstantNameSniff recognizes expression Foo_Bar in "use Foo\Bar as Foo_Bar;" as constant. The solution would be adding T_AS to $declarations array within Generic_Sniffs_NamingConventions_UpperCaseConstantNameSniffp::rocess() method.

Comments

 [2010-11-17 08:31 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
This bug has been fixed in SVN. 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.