1
0
mirror of synced 2025-03-21 07:23:55 +03:00

DDC-1030 - Fix Static Reflection with namespace levels deeper than one.

This commit is contained in:
Benjamin Eberlei 2011-02-13 10:02:18 +01:00
parent 3d0d31ddf8
commit 35a152318e

View File

@ -412,6 +412,8 @@ public function <methodName>()
$token = $tokens[$i];
if ($token[0] == T_NAMESPACE) {
$lastSeenNamespace = $tokens[$i+2][1] . "\\";
} else if ($token[0] == T_NS_SEPARATOR) {
$lastSeenNamespace .= $tokens[$i+1][1] . "\\";
} else if ($token[0] == T_CLASS) {
$lastSeenClass = $lastSeenNamespace . $tokens[$i+2][1];
$this->_staticReflection[$lastSeenClass]['properties'] = array();