Skip to content

Commit

Permalink
use T_DOUBLE_COLON token
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Feb 4, 2022
1 parent f644e10 commit 8bbed34
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Driver/AbstractClassDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ protected function loadClassFromFile(string $mappingFile): string
}
}

if (
$token[0] === \T_CLASS
&& (!\is_array($previousToken) || $previousToken[0] !== \T_PAAMAYIM_NEKUDOTAYIM)
) {
if ($token[0] === \T_CLASS && (!\is_array($previousToken) || $previousToken[0] !== \T_DOUBLE_COLON)) {
$hasClass = true;
}
if ($token[0] === \T_NAMESPACE) {
Expand Down

0 comments on commit 8bbed34

Please sign in to comment.