Skip to content

Commit 2e71ef5

Browse files
committed
Updated generics types
1 parent 632e119 commit 2e71ef5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/PipelineRunnerInterface.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44

55
namespace Kiboko\Contract\Pipeline;
66

7+
use Kiboko\Contract\Bucket\AcceptanceResultBucketInterface;
8+
use Kiboko\Contract\Bucket\RejectionResultBucketInterface;
79
use Kiboko\Contract\Bucket\ResultBucketInterface;
810

9-
/**
10-
* @template Type
11-
*/
1211
interface PipelineRunnerInterface
1312
{
1413
/**
15-
* @param \Iterator<int, non-empty-array<array-key, mixed>|object> $source
16-
* @param \Generator<mixed, Type, ResultBucketInterface<Type>, void> $async
14+
* @template Type
1715
*
18-
* @return \Iterator<non-empty-array<array-key, mixed>|object>
16+
* @param \Iterator<int, Type|null> $source
17+
* @param \Generator<int, ResultBucketInterface<Type>&(AcceptanceResultBucketInterface<Type>|RejectionResultBucketInterface<Type>), Type|null, void> $async
18+
*
19+
* @return \Iterator<int, ResultBucketInterface<Type|null>>
1920
*/
2021
public function run(
2122
\Iterator $source,

0 commit comments

Comments
 (0)