1
0
mirror of synced 2025-02-02 13:31:45 +03:00

DDC-3493 - fixed EntityGenerator parsing for php 5.5 "::class" syntax

This commit is contained in:
Andrea Sprega 2015-01-15 02:31:18 +00:00 committed by Marco Pivetta
parent ddf3125afe
commit b5e40fe5f5

View File

@ -679,7 +679,7 @@ public function __construct()
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) {