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 09:16 UTC Modified: 2007-07-19 08:35 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  


 [2007-07-17 09: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 10: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 08: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