Skip to content

Commit d31b9f8

Browse files
committed
Updated the contracts
1 parent 26d3a89 commit d31b9f8

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

src/ExtractingInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
interface ExtractingInterface
88
{
99
/**
10-
* @template OutputType
10+
* @template OutputType of non-empty-array<array-key, mixed>|object
1111
*
1212
* @param ExtractorInterface<OutputType> $extractor
1313
*/

src/ExtractorInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
use Kiboko\Contract\Bucket\ResultBucketInterface;
88

9-
/** @template OutputType */
9+
/** @template OutputType of non-empty-array<array-key, mixed>|object */
1010
interface ExtractorInterface
1111
{
1212
/**
1313
* Extract data from the given source.
1414
*
15-
* @return iterable<int, ResultBucketInterface<OutputType|null>>
15+
* @return iterable<int, ResultBucketInterface<OutputType>>
1616
*/
1717
public function extract(): iterable;
1818
}

src/LoaderInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
use Kiboko\Contract\Bucket\ResultBucketInterface;
88

99
/**
10-
* @template InputType
11-
* @template OutputType
10+
* @template InputType of non-empty-array<array-key, mixed>|object
11+
* @template OutputType of non-empty-array<array-key, mixed>|object
1212
*/
1313
interface LoaderInterface
1414
{
1515
/**
1616
* Loads data in the given sink.
1717
*
18-
* @return \Generator<mixed, ResultBucketInterface<OutputType>|ResultBucketInterface<void>, InputType|null, void>
18+
* @return \Generator<mixed, ResultBucketInterface<OutputType>, InputType|null, void>
1919
*/
2020
public function load(): \Generator;
2121
}

src/LoadingInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
interface LoadingInterface
88
{
99
/**
10-
* @template InputType
11-
* @template OutputType
10+
* @template InputType of non-empty-array<array-key, mixed>|object
11+
* @template OutputType of non-empty-array<array-key, mixed>|object
1212
*
1313
* @param LoaderInterface<InputType, OutputType> $loader
1414
*/

src/PipelineRunnerInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ interface PipelineRunnerInterface
1212
* @template InputType of non-empty-array<array-key, mixed>|object
1313
* @template OutputType of non-empty-array<array-key, mixed>|object
1414
*
15-
* @param \Iterator<int, InputType|null> $source
16-
* @param \Generator<int, ResultBucketInterface<InputType>, InputType, void> $coroutine
15+
* @param \Iterator<positive-int, InputType|null> $source
16+
* @param \Generator<positive-int, ResultBucketInterface<InputType>, InputType, void> $coroutine
1717
* @param StepRejectionInterface<InputType> $rejection
1818
* @param StepStateInterface $state
19-
* @return \Iterator<int, ResultBucketInterface<OutputType>|null>
19+
* @return \Iterator<positive-int, ResultBucketInterface<OutputType>|null>
2020
*/
2121
public function run(
2222
\Iterator $source,

src/TransformerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
use Kiboko\Contract\Bucket\ResultBucketInterface;
88

99
/**
10-
* @template InputType
11-
* @template OutputType
10+
* @template InputType of non-empty-array<array-key, mixed>|object
11+
* @template OutputType of non-empty-array<array-key, mixed>|object
1212
*/
1313
interface TransformerInterface
1414
{

src/TransformingInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
interface TransformingInterface
88
{
99
/**
10-
* @template InputType
11-
* @template OutputType
10+
* @template InputType of non-empty-array<array-key, mixed>|object
11+
* @template OutputType of non-empty-array<array-key, mixed>|object
1212
*
1313
* @param TransformerInterface<InputType, OutputType> $transformer
1414
*/

0 commit comments

Comments
 (0)