Skip to content

Commit ebb47fc

Browse files
committed
WIP got rid of last leftover instanceof check. T_* ftw.
1 parent 10e56b8 commit ebb47fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeCoverage/Util/Tokenizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function tokenize() {
190190
'file' => $this->filename
191191
);
192192

193-
if ($token instanceof PHP_Token_CLASS) {
193+
if ($this->tconst($token) === T_CLASS) {
194194
$class = (string)$tokens[$i + 2];
195195
$classEndLine = $token->getEndLine();
196196
$this->classes[$class] = $tmp;

0 commit comments

Comments
 (0)