Skip to content

Commit

Permalink
feat: make form value public (#34)
Browse files Browse the repository at this point in the history
* Make form value public
* Return self
  • Loading branch information
rreynier authored Dec 16, 2023
1 parent cfe70a9 commit 33298eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MultipartFormDataModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ public function webhookExtraHttpHeaders(array $headers): self
/**
* @param mixed $value
*/
protected function formValue(string $name, $value): void
public function formValue(string $name, $value): self
{
$this->multipartFormData[] = [
'name' => $name,
'contents' => $value,
];

return $this;
}

protected function formFile(string $filename, StreamInterface $stream): void
Expand Down

0 comments on commit 33298eb

Please sign in to comment.