Skip to content

Commit 2631bd2

Browse files
Regenerate
1 parent 3774c83 commit 2631bd2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Framework/Assert/Functions.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ function assertArrayNotHasKey(int|string $key, array|ArrayAccess $array, string
193193

194194
if (!function_exists('PHPUnit\Framework\assertIsList')) {
195195
/**
196+
* @phpstan-assert list $array
197+
*
196198
* @throws ExpectationFailedException
197199
*
198200
* @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
279281
/**
280282
* Asserts that a haystack contains only values of a given type.
281283
*
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
283286
*
284287
* @throws Exception
285288
* @throws ExpectationFailedException
@@ -298,6 +301,7 @@ function assertContainsOnly(string $type, iterable $haystack, ?bool $isNativeTyp
298301
/**
299302
* Asserts that a haystack contains only instances of a given class name.
300303
*
304+
* @param class-string $className
301305
* @param iterable<mixed> $haystack
302306
*
303307
* @throws Exception
@@ -317,7 +321,8 @@ function assertContainsOnlyInstancesOf(string $className, iterable $haystack, st
317321
/**
318322
* Asserts that a haystack does not contain only values of a given type.
319323
*
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
321326
*
322327
* @throws Exception
323328
* @throws ExpectationFailedException

0 commit comments

Comments
 (0)