Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/Browser/HttpOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Zenstruck\Browser;

use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpFoundation\HeaderUtils;

/**
Expand All @@ -19,7 +20,7 @@
* @phpstan-type RequiredOptions = array{
* headers: array<string,string>,
* query: mixed[],
* files: array<string,string>,
* files: array<string,UploadedFile>,
* server: array<string,string>,
* body: string|mixed[]|null,
* json: mixed,
Expand All @@ -28,7 +29,7 @@
* @phpstan-type Options = array{
* headers?: array<string,string>,
* query?: mixed[],
* files?: array<string,string>,
* files?: array<string,UploadedFile>,
* server?: array<string,string>,
* body?: string|mixed[]|null,
* json?: mixed,
Expand Down Expand Up @@ -193,7 +194,7 @@ final public function withServer(array $server): self
}

/**
* @param array<string,string> $files
* @param array<string, UploadedFile> $files
*
* @return static
*/
Expand Down Expand Up @@ -280,7 +281,7 @@ final public function parameters(): array
/**
* @internal
*
* @return array<string,string>
* @return array<string,UploadedFile>
*/
final public function files(): array
{
Expand Down
Loading