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

Bug #17718 namespace 'use' statement: used global class name is recognized as constant
Submitted: 2010-08-17 17:40 UTC
From: tim_dierolf Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.2.2)
PHP Version: 5.3.2 OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2010-08-17 17:40 UTC] tim_dierolf (Tim Dierolf)
Description: ------------ Sniff Generic.NamingConventions.UpperCaseConstantName regognizes a PHP namespace 'use' statement on classes in the global namespace as PHP constants. Example: use Exception; Throws an error: Constants must be uppercase; expected EXCEPTION but found Exception

Comments

 [2010-08-18 04:45 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.