From 33298eb81eb8e63fb0aaca71607f98b553a3bb50 Mon Sep 17 00:00:00 2001 From: Roeland Reyniers Date: Sat, 16 Dec 2023 06:53:33 -0700 Subject: [PATCH] feat: make form value public (#34) * Make form value public * Return self --- src/MultipartFormDataModule.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MultipartFormDataModule.php b/src/MultipartFormDataModule.php index d7cf9b1..eff317a 100644 --- a/src/MultipartFormDataModule.php +++ b/src/MultipartFormDataModule.php @@ -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