diff --git a/src/EventBus/Message.php b/src/EventBus/Message.php index 21a090a93..1d8f18778 100644 --- a/src/EventBus/Message.php +++ b/src/EventBus/Message.php @@ -8,7 +8,6 @@ use Patchlevel\EventSourcing\Aggregate\AggregateRoot; use function array_key_exists; -use function array_keys; /** * @template-covariant T of object diff --git a/tests/Unit/EventBus/MessageTest.php b/tests/Unit/EventBus/MessageTest.php index 63080816b..b76defc54 100644 --- a/tests/Unit/EventBus/MessageTest.php +++ b/tests/Unit/EventBus/MessageTest.php @@ -120,8 +120,7 @@ public function testCustomHeaders(): void ->withPlayhead(1) ->withRecordedOn($recordedAt) ->withCustomHeader('custom-field', 'foo-bar') - ->withCustomHeader('valueiskey', 'valueiskey') - ; + ->withCustomHeader('valueiskey', 'valueiskey'); self::assertEquals( ['custom-field' => 'foo-bar', 'valueiskey' => 'valueiskey'],