Skip to content

Commit a723722

Browse files
Merge branch '12.1'
2 parents 653bce9 + e6915f9 commit a723722

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/Framework/Assert.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,11 @@ final public static function assertContainsOnlyString(iterable $haystack, string
569569
/**
570570
* Asserts that a haystack contains only instances of a specified interface or class name.
571571
*
572-
* @param class-string $className
572+
* @template T
573+
*
574+
* @phpstan-assert iterable<T> $haystack
575+
*
576+
* @param class-string<T> $className
573577
* @param iterable<mixed> $haystack
574578
*
575579
* @throws Exception

src/Framework/Assert/Functions.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,11 @@ function assertContainsOnlyString(iterable $haystack, string $message = ''): voi
531531
/**
532532
* Asserts that a haystack contains only instances of a specified interface or class name.
533533
*
534-
* @param class-string $className
534+
* @template T
535+
*
536+
* @phpstan-assert iterable<T> $haystack
537+
*
538+
* @param class-string<T> $className
535539
* @param iterable<mixed> $haystack
536540
*
537541
* @throws Exception

0 commit comments

Comments
 (0)