From 86b2b67760f62bf618fe1f3321f1226a5c6360af Mon Sep 17 00:00:00 2001 From: Chris Lloyd Date: Thu, 20 Jul 2023 15:36:23 +0100 Subject: [PATCH] WIP --- src/PathSegment/Batch/Multipart.php | 2 +- tests/TestCase.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PathSegment/Batch/Multipart.php b/src/PathSegment/Batch/Multipart.php index 18c1dbc3a..3211610b5 100644 --- a/src/PathSegment/Batch/Multipart.php +++ b/src/PathSegment/Batch/Multipart.php @@ -42,7 +42,7 @@ public function response(Transaction $transaction, ?ContextInterface $context = throw new BadRequestException('missing_boundary', 'The provided content type had no boundary parameter'); } - array_unshift($this->boundaries, Str::uuid()); + array_unshift($this->boundaries, (string) Str::uuid()); $transaction->sendContentType( (new MediaType) ->parse(MediaType::multipartMixed) diff --git a/tests/TestCase.php b/tests/TestCase.php index 1ab7d730d..b6ecdf136 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -41,6 +41,7 @@ use Illuminate\Testing\TestResponse; use PHPUnit\Runner\Version; use Ramsey\Uuid\Uuid; +use Ramsey\Uuid\UuidInterface; use ReflectionClass; use Spatie\Snapshots\MatchesSnapshots; use Symfony\Component\HttpFoundation\StreamedResponse; @@ -99,7 +100,7 @@ public function getEnvironmentSetUp($app) $app->register(RedisMockServiceProvider::class); - Str::createUuidsUsing(function (): string { + Str::createUuidsUsing(function (): UuidInterface { return Uuid::fromInteger($this->uuid++); });