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

Bug #11984 static protected $variable noted correctly detected
Submitted: 2007-09-05 06:12 UTC Modified: 2007-09-13 05:25 UTC
From: berdir Assigned: mcorne
Status: Closed Package: PHP_DocBlockGenerator (version 1.1.0)
PHP Version: 5.2.3 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-09-05 06:12 UTC] berdir (Sascha Grossenbacher)
Description: ------------ This bug is similiar to http://pear.php.net/bugs/11622. This time, "static protected $variable" is not correctly detected and the docblock is written between static and protected. However, "protected static $variable" works fine. As both ways work in PHP,I think PHP_DocBlockGenerator should handle both too. Test script: --------------- class Test { static protected $variable; } Expected result: ---------------- class Test { /** * Description for protected * @var unknown * @access protected * @static */ static protected $variable; } Actual result: -------------- class Test { static /** * Description for protected * @var unknown * @access protected * @static */ protected $variable; }

Comments

 [2007-09-13 05:25 UTC] mcorne (Michel Corne)
Fixed in release 1.1.1 Thanks for submitting the bug. MC