This commit is contained in:
2021-01-22 14:33:32 +08:00
parent 074f1805eb
commit 2489b52da2
4 changed files with 8 additions and 6 deletions

View File

@ -17,7 +17,7 @@ use PHPUnit\Framework\TestCase;
class TokenInterfaceTest extends TestCase
{
/** @var TokenInterface[] TokenClass */
/** @var class-string<TokenInterface>[] TokenClass */
private $tokenTypes = [
TokenAnd::class,
TokenDefine::class,
@ -29,7 +29,7 @@ class TokenInterfaceTest extends TestCase
protected $chainLast;
protected function setUp(): void
{
/** @var ?TokenInterface $next */
/** @var ?TokenInterface $last */
$last = NULL;
foreach ($this->tokenTypes as $cls) {
/** @var TokenInterface $current */