From a2258a19dc46e6cebbe6e32abd5409c1dfac9002 Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Mon, 17 Jul 2023 23:00:21 -0500 Subject: [PATCH] Update Assert.php --- src/Utility/Assert.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Utility/Assert.php b/src/Utility/Assert.php index 26163ce5..e030704c 100644 --- a/src/Utility/Assert.php +++ b/src/Utility/Assert.php @@ -1706,7 +1706,7 @@ public static function allNullOrImplementsInterface($value, $interface, $message * * @throws InvalidArgumentException */ - public static function allNullOrInArray($value, $values, $message = ''): void + public static function allNullOrInArray($value, array $values, $message = ''): void { self::isIterable($value); @@ -1840,7 +1840,7 @@ public static function allNullOrIpv6($value, $message = ''): void * * @throws InvalidArgumentException */ - public static function allNullOrIsAnyOf($value, $classes, $message = ''): void + public static function allNullOrIsAnyOf($value, array $classes, $message = ''): void { self::isIterable($value); @@ -2019,7 +2019,7 @@ public static function allNullOrIsInstanceOf($value, $class, $message = ''): voi * * @throws InvalidArgumentException */ - public static function allNullOrIsInstanceOfAny($value, $classes, $message = ''): void + public static function allNullOrIsInstanceOfAny($value, array $classes, $message = ''): void { self::isIterable($value); @@ -2733,7 +2733,7 @@ public static function allNullOrObject($value, $message = ''): void * * @throws InvalidArgumentException */ - public static function allNullOrOneOf($value, $values, $message = ''): void + public static function allNullOrOneOf($value, array $values, $message = ''): void { self::isIterable($value); @@ -5391,7 +5391,7 @@ public static function nullOrImplementsInterface($value, $interface, $message = * * @throws InvalidArgumentException */ - public static function nullOrInArray($value, $values, $message = ''): void + public static function nullOrInArray($value, array $values, $message = ''): void { if (null !== $value) { self::inArray($value, $values, $message); @@ -5497,7 +5497,7 @@ public static function nullOrIpv6($value, $message = ''): void * * @throws InvalidArgumentException */ - public static function nullOrIsAnyOf($value, $classes, $message = ''): void + public static function nullOrIsAnyOf($value, array $classes, $message = ''): void { if (null !== $value) { self::isAnyOf($value, $classes, $message); @@ -5644,7 +5644,7 @@ public static function nullOrIsInstanceOf($value, $class, $message = ''): void * * @throws InvalidArgumentException */ - public static function nullOrIsInstanceOfAny($value, $classes, $message = ''): void + public static function nullOrIsInstanceOfAny($value, array $classes, $message = ''): void { if (null !== $value) { self::isInstanceOfAny($value, $classes, $message); @@ -6210,7 +6210,7 @@ public static function nullOrObject($value, $message = ''): void * * @throws InvalidArgumentException */ - public static function nullOrOneOf($value, $values, $message = ''): void + public static function nullOrOneOf($value, array $values, $message = ''): void { if (null !== $value) { self::oneOf($value, $values, $message);