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

Bug #18135 Generic FunctionCallArgumentSpacingSniff reports function declaration errors
Submitted: 2010-12-22 16:39 UTC
From: buchi Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.3.0RC1)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2010-12-22 16:39 UTC] buchi (Gerald Buchgraber)
Description: ------------ The sniff "Generic_Sniffs_Functions_FunctionCallArgumentSpacingSniff" reports missing spaces around "=" for lines like: protected function &_myFunc($arg=null) { ... } but this sniff shall just check function calls and NOT function declarations. obviously the "&" before the function name is the problem.

Comments

 [2011-01-10 12:01 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.