Skip to content

Commit

Permalink
Merge branch 'hotfix/#1256-DDC-3493-fix' into hotfix/#1250-DDC-3493-f…
Browse files Browse the repository at this point in the history
…ix-class-pseudo-constant-parsing-in-entitygenerator

Close #1250
Close #1256
  • Loading branch information
Ocramius committed Jan 15, 2015
2 parents 41dd584 + 243210e commit 5be57d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Tools/EntityGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ protected function parseTokensInEntityFile($src)
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) {
Expand Down

0 comments on commit 5be57d0

Please sign in to comment.