Skip to content

Commit c90b96e

Browse files
committed
fix failing test
1 parent 731ae8e commit c90b96e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/TypeChecking/Generics/StrictReturnGenericInvarianceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function produceUseSiteCovariantAnimalBox(): InvariantTestBox
8989

9090
test('default strict mode rejects returning InvariantTestBox<Dog> for InvariantTestBox<Animal> (PHPStan Parity)', function () {
9191
expect(fn () => produceAnimalBox())
92-
->toThrow(TypeError::class, 'expects TypePHP\Tests\TypeChecking\Generics\InvariantTestBox<invariant TypePHP\Tests\Fixtures\Domain\Animal>, but TypePHP\Tests\TypeChecking\Generics\InvariantTestBox<TypePHP\Tests\Fixtures\Domain\Dog> was returned')
92+
->toThrow(TypeError::class, 'expects InvariantTestBox<invariant TypePHP\Tests\Fixtures\Domain\Animal>, but InvariantTestBox<TypePHP\Tests\Fixtures\Domain\Dog> was returned')
9393
;
9494
});
9595

0 commit comments

Comments
 (0)