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

Bug #11622 static private function is not correctly detected
Submitted: 2007-07-17 14:16 UTC
From: berdir Assigned: mcorne
Status: Closed Package: PHP_DocBlockGenerator (version 1.0.1)
PHP Version: 5.2.3 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
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:
MUST BE VALID
Solve the problem : 16 - 13 = ?

 
 [2007-07-17 14:16 UTC] berdir (Sascha Grossenbacher)
Description: ------------ If you have a function like static private function someFunction($param1, $param2) PHP_DocBlockGenerator does place the DocBlock between static and private. Test script: --------------- static private function someFunction($param1, $param2) { // Code.. } Expected result: ---------------- /** * DocBlock Content... */ static private function someFunction($param1, $param2) { //Code } Actual result: -------------- static /** * DocBlock Content... */ private function someFunction($param1, $param2) { //Code }

Comments

 [2007-07-17 15:31 UTC] berdir (Sascha Grossenbacher)
Update: the same happens for final classes final class SomeClass { } the generated docBlock is between final and class.
 [2007-07-19 13:35 UTC] mcorne (Michel Corne)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/PHP_DocBlockGenerator Fixed in 1.0.2