From 9f0ae109bdf148adc66b93ef4a8917afb67ad7d5 Mon Sep 17 00:00:00 2001 From: Flohw Date: Tue, 26 Aug 2025 11:54:06 +0200 Subject: [PATCH 1/2] Fix phpstan doc comment --- src/Browser/HttpOptions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Browser/HttpOptions.php b/src/Browser/HttpOptions.php index 72646c8..098dcd4 100644 --- a/src/Browser/HttpOptions.php +++ b/src/Browser/HttpOptions.php @@ -11,6 +11,7 @@ namespace Zenstruck\Browser; +use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\HeaderUtils; /** @@ -28,7 +29,7 @@ * @phpstan-type Options = array{ * headers?: array, * query?: mixed[], - * files?: array, + * files?: array, * server?: array, * body?: string|mixed[]|null, * json?: mixed, @@ -193,7 +194,7 @@ final public function withServer(array $server): self } /** - * @param array $files + * @param array $files * * @return static */ @@ -280,7 +281,7 @@ final public function parameters(): array /** * @internal * - * @return array + * @return array */ final public function files(): array { From e4d05235e8fa4d2684ef956977a1bb5bd254992b Mon Sep 17 00:00:00 2001 From: Flohw Date: Tue, 26 Aug 2025 12:11:33 +0200 Subject: [PATCH 2/2] Add missing type --- src/Browser/HttpOptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Browser/HttpOptions.php b/src/Browser/HttpOptions.php index 098dcd4..8bd1c9b 100644 --- a/src/Browser/HttpOptions.php +++ b/src/Browser/HttpOptions.php @@ -20,7 +20,7 @@ * @phpstan-type RequiredOptions = array{ * headers: array, * query: mixed[], - * files: array, + * files: array, * server: array, * body: string|mixed[]|null, * json: mixed,