Skip to content

Commit 5b5916d

Browse files
herndlmondrejmirtes
authored andcommitted
Fix allSubclassOf test case
1 parent c9b8ddb commit 5b5916d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/Type/WebMozartAssert/data/collection.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ public function allNotSame(array $a): void
7979
public function allSubclassOf(array $a, $b): void
8080
{
8181
Assert::allSubclassOf($a, self::class);
82-
// should array<PHPStan\Type\WebMozartAssert\CollectionTest>
83-
\PHPStan\Testing\assertType('array<*NEVER*>', $a);
82+
\PHPStan\Testing\assertType('array<class-string<PHPStan\Type\WebMozartAssert\CollectionTest>|PHPStan\Type\WebMozartAssert\CollectionTest>', $a);
8483

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

0 commit comments

Comments
 (0)