1
0
mirror of synced 2025-03-21 23:43:53 +03:00

Merge branch 'hotfix/#1250-DDC-3493-fix-class-pseudo-constant-parsing-in-entitygenerator'

This commit is contained in:
Marco Pivetta 2015-01-15 04:16:44 +01:00
commit 5bd921139e
2 changed files with 11 additions and 1 deletions

View File

@ -827,7 +827,7 @@ public function __construct(<params>)
if ($token[0] == T_NAMESPACE) {
$lastSeenNamespace = "";
$inNamespace = true;
} elseif ($token[0] == T_CLASS) {
} elseif ($token[0] == T_CLASS && $tokens[$i-1][0] != T_DOUBLE_COLON) {
$inClass = true;
} elseif ($token[0] == T_FUNCTION) {
if ($tokens[$i+2][0] == T_STRING) {

View File

@ -1035,6 +1035,16 @@ class
',
array('Foo\Bar\Baz'),
),
array(
'
<?php namespace Foo\Bar; class Baz {
public static function someMethod(){
return self::class;
}
}
',
array('Foo\Bar\Baz'),
),
);
}