Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ public function addStream(string $name, HttpContent $content, ?string $filename
/**
* @param string $path Local file path. Filename will be provided to the server.
* @throws HttpException
*
* @psalm-taint-sink file $path
*/
public function addFile(string $name, string $path, ?string $contentType = null): void
{
Expand Down
4 changes: 4 additions & 0 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ final class Request extends HttpRequest

/**
* @param non-empty-string $method
*
* @psalm-taint-sink ssrf $uri
*/
public function __construct(UriInterface|string $uri, string $method = "GET", HttpContent|string $body = '')
{
Expand Down Expand Up @@ -143,6 +145,8 @@ public function setMethod(string $method): void

/**
* Specify the request's HTTP URI.
*
* @psalm-taint-sink ssrf $uri
*/
#[\Override]
public function setUri(UriInterface|string $uri): void
Expand Down
Loading