You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c90b96e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: tests/TypeChecking/Generics/StrictReturnGenericInvarianceTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ function produceUseSiteCovariantAnimalBox(): InvariantTestBox
89
89
90
90
test('default strict mode rejects returning InvariantTestBox<Dog> for InvariantTestBox<Animal> (PHPStan Parity)', function () {
91
91
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')
0 commit comments