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": { 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 = '')