We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9956f3 commit 638c005Copy full SHA for 638c005
src/CodeCoverage/Util/Tokenizer.php
@@ -184,9 +184,9 @@ private function getParent(array $tokens, $i) {
184
185
private function getInterfaces(array $tokens, $i) {
186
$interfaces = false;
187
- if (isset($tokens[$i + 4]) && $this->tid($tokens[$i + 4]) === T_IMPLEMENTS ||
188
- isset($tokens[$i + 8]) && $this->tid($tokens[$i + 8]) === T_IMPLEMENTS) {
189
- if ($this->tid($tokens[$i + 4]) === T_IMPLEMENTS) {
+ if (isset($tokens[$i + 4]) && $this->tconst($tokens[$i + 4]) === T_IMPLEMENTS ||
+ isset($tokens[$i + 8]) && $this->tconst($tokens[$i + 8]) === T_IMPLEMENTS) {
+ if ($this->tconst($tokens[$i + 4]) === T_IMPLEMENTS) {
190
$ii = $i + 3;
191
} else {
192
$ii = $i + 7;
0 commit comments