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

Request #18043 Add T_NAMESPACE to PHP_CodeSniffer_Tokenizers_PHP::$scopeOpeners
Submitted: 2010-11-11 23:52 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-11 23:52 UTC] dvino (Dmitri Medvedev)
Description: ------------ to allow correct indenting within namespace declaration, e.g.: <code> <?php namespace Foo { class Bar { } } </code> PHP_CodeSniffer_Tokenizers_PHP::$scopeOpeners must contain T_NAMESPACE token: <code> T_NAMESPACE => array( 'start' => array(T_OPEN_CURLY_BRACKET), 'end' => array(T_CLOSE_CURLY_BRACKET), 'strict' => true, 'shared' => false, ), </code> Test script: ---------------

Comments

 [2011-04-15 06:43 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.