Skip to content

Commit

Permalink
Updated the contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
gplanchat committed Nov 14, 2023
1 parent 96b2549 commit 3e25f9c
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions src/EmptyResultBucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,8 @@
/**
* @template Type of non-empty-array<array-key, mixed>|object
*
* @implements Contract\AcceptanceResultBucketInterface<Type>
* @implements Contract\RejectionResultBucketInterface<Type>
* @implements Contract\ResultBucketInterface<Type>
*/
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();
}
}

0 comments on commit 3e25f9c

Please sign in to comment.