Community
Participate
Working Groups
Code assist doesn't propose static methods/fields in an object trigger context. For example: <?php class Example { public static function publicsf() { echo "publicsf"; } public static $publicsf = "publicsf"; protected static function protectedsf() { echo "protectedsf"; } protected static $protectedsf = "protectedsf"; private static function privatest() { echo "privatest"; } private static $privatest = "privatest"; function foo() { $this->| } } $e = new Example(); $e->| Example::| ?> In this example only the last code assist works as expected. the first two should propose the static functions/fields (depending on the visibility allowed)
Created attachment 139708 [details] patch for code assist behavior This patch solves the issue described. It also fixes a number of wrong code assist behaviors, that described in the spreadsheet attached. A lot of pdtt test files changes.
Created attachment 139709 [details] changes description for patch
Applied to HEAD.
Re-tested at PDT 2.2.0.v20100118 - Static method and field are shown for content assist proposal at static invocation -- Verified by Teodor Kirkov -- -- teodor.k@zend.com --