@@ -193,6 +193,8 @@ function assertArrayNotHasKey(int|string $key, array|ArrayAccess $array, string
193
193
194
194
if (!function_exists ('PHPUnit\Framework\assertIsList ' )) {
195
195
/**
196
+ * @phpstan-assert list $array
197
+ *
196
198
* @throws ExpectationFailedException
197
199
*
198
200
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@@ -279,7 +281,8 @@ function assertNotContainsEquals(mixed $needle, iterable $haystack, string $mess
279
281
/**
280
282
* Asserts that a haystack contains only values of a given type.
281
283
*
282
- * @param iterable<mixed> $haystack
284
+ * @param 'array'|'bool'|'boolean'|'callable'|'double'|'float'|'int'|'integer'|'iterable'|'null'|'numeric'|'object'|'real'|'resource (closed)'|'resource'|'scalar'|'string' $type
285
+ * @param iterable<mixed> $haystack
283
286
*
284
287
* @throws Exception
285
288
* @throws ExpectationFailedException
@@ -298,6 +301,7 @@ function assertContainsOnly(string $type, iterable $haystack, ?bool $isNativeTyp
298
301
/**
299
302
* Asserts that a haystack contains only instances of a given class name.
300
303
*
304
+ * @param class-string $className
301
305
* @param iterable<mixed> $haystack
302
306
*
303
307
* @throws Exception
@@ -317,7 +321,8 @@ function assertContainsOnlyInstancesOf(string $className, iterable $haystack, st
317
321
/**
318
322
* Asserts that a haystack does not contain only values of a given type.
319
323
*
320
- * @param iterable<mixed> $haystack
324
+ * @param 'array'|'bool'|'boolean'|'callable'|'double'|'float'|'int'|'integer'|'iterable'|'null'|'numeric'|'object'|'real'|'resource (closed)'|'resource'|'scalar'|'string' $type
325
+ * @param iterable<mixed> $haystack
321
326
*
322
327
* @throws Exception
323
328
* @throws ExpectationFailedException
0 commit comments