Skip to content

Commit b7a46c6

Browse files
Update test
1 parent 7b29936 commit b7a46c6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/PHPStan/Rules/PhpDoc/WrongVariableNameInVarTagRuleTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,12 @@ public function testGenericSubtype(): void
594594
[
595595
'PHPDoc tag @var with type GenericSubtype\IRepository<E of GenericSubtype\IEntity> is not subtype of type GenericSubtype\IRepository<GenericSubtype\IEntity>.',
596596
78,
597+
'Template type E on class GenericSubtype\IRepository is not covariant. Learn more: <fg=cyan>https://phpstan.org/blog/whats-up-with-template-covariant</>',
597598
],
598599
[
599600
'PHPDoc tag @var with type GenericSubtype\IRepository<GenericSubtype\Foo> is not subtype of type GenericSubtype\IRepository<GenericSubtype\IEntity>.',
600601
131,
602+
'Template type E on class GenericSubtype\IRepository is not covariant. Learn more: <fg=cyan>https://phpstan.org/blog/whats-up-with-template-covariant</>',
601603
],
602604
]);
603605
}

0 commit comments

Comments
 (0)