From 01b4e706daafb109e9fabbf3b4497d2f4dada035 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 28 Oct 2025 17:40:50 +0100 Subject: [PATCH] Fix invalid @static method signature --- src/Assert.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Assert.php b/src/Assert.php index 40cf5c5..b13def1 100644 --- a/src/Assert.php +++ b/src/Assert.php @@ -44,7 +44,7 @@ * @method static void boolean(mixed $value, string $message = '', string $exception = '') * @method static void scalar(mixed $value, string $message = '', string $exception = '') * @method static void object(mixed $value, string $message = '', string $exception = '') - * @method static void resource(mixed $value, string|null $type, string $message = '', string $exception = '') + * @method static void resource(mixed $value, string|null $type = null, string $message = '', string $exception = '') * @method static void isCallable(mixed $value, string $message = '', string $exception = '') * @method static void isArray(mixed $value, string $message = '', string $exception = '') * @method static void isTraversable(mixed $value, string $message = '', string $exception = '') @@ -149,8 +149,8 @@ * @method static void allScalar(mixed $value, string $message = '', string $exception = '') * @method static void nullOrObject(mixed $value, string $message = '', string $exception = '') * @method static void allObject(mixed $value, string $message = '', string $exception = '') - * @method static void nullOrResource(mixed $value, string|null $type, string $message = '', string $exception = '') - * @method static void allResource(mixed $value, string|null $type, string $message = '', string $exception = '') + * @method static void nullOrResource(mixed $value, string|null $type = null, string $message = '', string $exception = '') + * @method static void allResource(mixed $value, string|null $type = null, string $message = '', string $exception = '') * @method static void nullOrIsCallable(mixed $value, string $message = '', string $exception = '') * @method static void allIsCallable(mixed $value, string $message = '', string $exception = '') * @method static void nullOrIsArray(mixed $value, string $message = '', string $exception = '')