Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
27pchrisl committed Jul 20, 2023
1 parent d935052 commit 86b2b67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PathSegment/Batch/Multipart.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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++);
});

Expand Down

0 comments on commit 86b2b67

Please sign in to comment.