Skip to content

Commit be95ab9

Browse files
Regenerate
1 parent a174882 commit be95ab9

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/Framework/Assert/Functions.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,17 +281,19 @@ function assertNotContainsEquals(mixed $needle, iterable $haystack, string $mess
281281
/**
282282
* Asserts that a haystack contains only values of a given type.
283283
*
284-
* @param 'array'|'bool'|'boolean'|'callable'|'double'|'float'|'int'|'integer'|'iterable'|'null'|'numeric'|'object'|'real'|'resource (closed)'|'resource'|'scalar'|'string'|NativeType $type
285-
* @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
286286
*
287287
* @throws Exception
288288
* @throws ExpectationFailedException
289289
*
290+
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/6055
291+
*
290292
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
291293
*
292294
* @see Assert::assertContainsOnly
293295
*/
294-
function assertContainsOnly(NativeType|string $type, iterable $haystack, ?bool $isNativeType = null, string $message = ''): void
296+
function assertContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = null, string $message = ''): void
295297
{
296298
Assert::assertContainsOnly(...func_get_args());
297299
}
@@ -537,17 +539,19 @@ function assertContainsOnlyInstancesOf(string $className, iterable $haystack, st
537539
/**
538540
* Asserts that a haystack does not contain only values of a given type.
539541
*
540-
* @param 'array'|'bool'|'boolean'|'callable'|'double'|'float'|'int'|'integer'|'iterable'|'null'|'numeric'|'object'|'real'|'resource (closed)'|'resource'|'scalar'|'string'|NativeType $type
541-
* @param iterable<mixed> $haystack
542+
* @param 'array'|'bool'|'boolean'|'callable'|'double'|'float'|'int'|'integer'|'iterable'|'null'|'numeric'|'object'|'real'|'resource (closed)'|'resource'|'scalar'|'string' $type
543+
* @param iterable<mixed> $haystack
542544
*
543545
* @throws Exception
544546
* @throws ExpectationFailedException
545547
*
548+
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/6055
549+
*
546550
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
547551
*
548552
* @see Assert::assertNotContainsOnly
549553
*/
550-
function assertNotContainsOnly(NativeType|string $type, iterable $haystack, ?bool $isNativeType = null, string $message = ''): void
554+
function assertNotContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = null, string $message = ''): void
551555
{
552556
Assert::assertNotContainsOnly(...func_get_args());
553557
}

0 commit comments

Comments
 (0)