Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.6.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)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 38 + 46 = ?

 [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. Greetings Christian


 [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 by the end of next Sunday (CET). If this was a problem with the 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.