Skip to content

Commit

Permalink
Fix allSubclassOf test case
Browse files Browse the repository at this point in the history
  • Loading branch information
herndlm authored and ondrejmirtes committed Feb 28, 2022
1 parent c9b8ddb commit 5b5916d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/Type/WebMozartAssert/data/collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ public function allNotSame(array $a): void
public function allSubclassOf(array $a, $b): void
{
Assert::allSubclassOf($a, self::class);
// should array<PHPStan\Type\WebMozartAssert\CollectionTest>
\PHPStan\Testing\assertType('array<*NEVER*>', $a);
\PHPStan\Testing\assertType('array<class-string<PHPStan\Type\WebMozartAssert\CollectionTest>|PHPStan\Type\WebMozartAssert\CollectionTest>', $a);

Assert::allSubclassOf($b, self::class);
\PHPStan\Testing\assertType('iterable<class-string<PHPStan\Type\WebMozartAssert\CollectionTest>|PHPStan\Type\WebMozartAssert\CollectionTest>', $b);
Expand Down

0 comments on commit 5b5916d

Please sign in to comment.