composer update
This commit is contained in:
+12
-10
@@ -303,7 +303,7 @@ class PHP_Token_Stream implements ArrayAccess, Countable, SeekableIterator
|
||||
];
|
||||
|
||||
foreach ($this->tokens as $token) {
|
||||
switch (get_class($token)) {
|
||||
switch (PHP_Token_Util::getClass($token)) {
|
||||
case 'PHP_Token_REQUIRE_ONCE':
|
||||
case 'PHP_Token_REQUIRE':
|
||||
case 'PHP_Token_INCLUDE_ONCE':
|
||||
@@ -358,7 +358,7 @@ class PHP_Token_Stream implements ArrayAccess, Countable, SeekableIterator
|
||||
$interfaceEndLine = false;
|
||||
|
||||
foreach ($this->tokens as $token) {
|
||||
switch (get_class($token)) {
|
||||
switch (PHP_Token_Util::getClass($token)) {
|
||||
case 'PHP_Token_HALT_COMPILER':
|
||||
return;
|
||||
|
||||
@@ -392,15 +392,17 @@ class PHP_Token_Stream implements ArrayAccess, Countable, SeekableIterator
|
||||
'file' => $this->filename
|
||||
];
|
||||
|
||||
if ($token instanceof PHP_Token_CLASS) {
|
||||
$class[] = $token->getName();
|
||||
$classEndLine[] = $token->getEndLine();
|
||||
if ($token->getName() !== null) {
|
||||
if ($token instanceof PHP_Token_CLASS) {
|
||||
$class[] = $token->getName();
|
||||
$classEndLine[] = $token->getEndLine();
|
||||
|
||||
$this->classes[$class[count($class) - 1]] = $tmp;
|
||||
} else {
|
||||
$trait = $token->getName();
|
||||
$traitEndLine = $token->getEndLine();
|
||||
$this->traits[$trait] = $tmp;
|
||||
$this->classes[$class[count($class) - 1]] = $tmp;
|
||||
} else {
|
||||
$trait = $token->getName();
|
||||
$traitEndLine = $token->getEndLine();
|
||||
$this->traits[$trait] = $tmp;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user