From 3e25f9ca7a85c7c05a72c004407f13da501248c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Planchat?= Date: Tue, 14 Nov 2023 12:38:59 +0100 Subject: [PATCH] Updated the contracts --- src/EmptyResultBucket.php | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/src/EmptyResultBucket.php b/src/EmptyResultBucket.php index b0ef514..d16ec68 100644 --- a/src/EmptyResultBucket.php +++ b/src/EmptyResultBucket.php @@ -9,28 +9,8 @@ /** * @template Type of non-empty-array|object * - * @implements Contract\AcceptanceResultBucketInterface - * @implements Contract\RejectionResultBucketInterface + * @implements Contract\ResultBucketInterface */ -final class EmptyResultBucket implements Contract\AcceptanceResultBucketInterface, Contract\RejectionResultBucketInterface +final class EmptyResultBucket implements Contract\ResultBucketInterface { - public function reasons(): ?array - { - return null; - } - - public function exceptions(): ?array - { - return null; - } - - public function walkAcceptance(): iterable - { - return new \EmptyIterator(); - } - - public function walkRejection(): iterable - { - return new \EmptyIterator(); - } }