From f7ab763632245f19bd9ac08b27d99850fc5d1240 Mon Sep 17 00:00:00 2001 From: Daniel Badura Date: Mon, 5 Feb 2024 23:40:59 +0100 Subject: [PATCH] Fix typehint --- tests/Unit/Aggregate/UuidTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Aggregate/UuidTest.php b/tests/Unit/Aggregate/UuidTest.php index cbeaa9497..20c623076 100644 --- a/tests/Unit/Aggregate/UuidTest.php +++ b/tests/Unit/Aggregate/UuidTest.php @@ -7,6 +7,7 @@ use DateTimeInterface; use Patchlevel\EventSourcing\Aggregate\Uuid; use PHPUnit\Framework\TestCase; +use Ramsey\Uuid\Type\Hexadecimal; use Ramsey\Uuid\Uuid as RamseyUuid; use Ramsey\Uuid\UuidFactory; use Ramsey\Uuid\UuidInterface; @@ -25,7 +26,7 @@ public function testV6(): void { $factory = new class extends UuidFactory { - public function uuid6($node = null, int|null $clockSeq = null): UuidInterface + public function uuid6(?Hexadecimal $node = null, ?int $clockSeq = null): UuidInterface { return RamseyUuid::fromString('1eec1e5c-e397-6644-9aed-0242ac110002'); }