Edit report at http://pear.php.net/bugs/bug.php?id=17718&edit=1

ID: 17718
Updated by: gsherwood@squiz.net
Reported By: td at gmx dot com
Summary: namespace 'use' statement: used global class name is
recognized as constant
-Status: Open
+Status: Closed
Type: Bug
Package: PHP_CodeSniffer
Operating System: irrelevant
Package Version: 1.2.2
PHP Version: 5.3.2
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:

-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.

Previous Comments:

[2010-08-17 13:40:24] tim_dierolf

Sniff Generic.NamingConventions.UpperCaseConstantName regognizes a PHP
namespace 'use' statement on classes in the global namespace as PHP

Example: use Exception;

Throws an error: Constants must be uppercase; expected EXCEPTION but
found Exception


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedAug 18, '10 at 12:45a
activeAug 18, '10 at 12:45a

1 user in discussion

Gsherwood: 1 post



site design / logo © 2022 Grokbase