updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -26,7 +26,7 @@ final class FormDataPart extends AbstractMultipartPart
private array $fields = [];
/**
* @param array<string|array|DataPart> $fields
* @param array<string|array|TextPart> $fields
*/
public function __construct(array $fields = [])
{
@@ -123,7 +123,11 @@ class TextPart extends AbstractPart
public function getBody(): string
{
if ($this->body instanceof File) {
return file_get_contents($this->body->getPath());
if (false === $ret = @file_get_contents($this->body->getPath())) {
throw new InvalidArgumentException(error_get_last()['message']);
}
return $ret;
}
if (null === $this->seekable) {