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

Request #16866 The method PHP_CodeSniffer_File::getDeclarationName cannot handle closures
Submitted: 2009-12-03 01:33 UTC
From: akkie Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.2.1)
PHP Version: 5.3.1 OS: Gentoo Linux
Roadmaps: (Not assigned)    
Subscription  


 [2009-12-03 01:33 UTC] akkie (Christian Kaps)
Description: ------------ The method PHP_CodeSniffer_File::getDeclarationName cannot handle closures. It returns the opening php tag for an anonymous function. It would be better when this method return null or a predefined value like @anonymous or whatever. I have created a method getDeclarationName and isAnonymousFunction for my coding standard. Maybe you can implement this. http://trac.mohiva.com/index.fcgi/browser/trunk/tools/CodeSniffer/Standards/Mohiva/Sniffs/NamingConventions/ValidFunctionNameSniff.php Greetings Christian

Comments

 [2009-12-03 09:32 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.