From 01b4e706daafb109e9fabbf3b4497d2f4dada035 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 28 Oct 2025 17:40:50 +0100 Subject: [PATCH 1/2] 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 = '') From 7250fb858b025032590078fc4cc52a4c1b634dbb Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Wed, 18 Mar 2026 12:27:23 +0100 Subject: [PATCH 2/2] Loosen the version requirement for guzzle --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2da47a3..46d9a9b 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "ext-pcre": "*", "ext-spl": "*", - "guzzlehttp/psr7": "~2.7.1", + "guzzlehttp/psr7": "~2.7", "webmozart/assert": "~1.11.0" }, "require-dev": {