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 e842de5 commit 18f7504
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/LoaderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface LoaderInterface
/**
* Loads data in the given sink.
*
* @return \Generator<mixed, ResultBucketInterface<OutputType>, InputType, void>
* @return \Generator<positive-int, ResultBucketInterface<OutputType>, InputType|null, void>
*/
public function load(): \Generator;
}
2 changes: 1 addition & 1 deletion src/PipelineRunnerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface PipelineRunnerInterface
* @template OutputType of non-empty-array<array-key, mixed>|object
*
* @param \Iterator<positive-int, InputType|null> $source
* @param \Generator<positive-int, ResultBucketInterface<InputType>, InputType, void> $coroutine
* @param \Generator<positive-int, ResultBucketInterface<InputType>, InputType|null, void> $coroutine
* @param StepRejectionInterface<InputType> $rejection
* @param StepStateInterface $state
* @return \Iterator<positive-int, ResultBucketInterface<OutputType>|null>
Expand Down
2 changes: 1 addition & 1 deletion src/TransformerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface TransformerInterface
/**
* Transforms the data from one format to another.
*
* @return \Generator<mixed, ResultBucketInterface<OutputType>, InputType, void>
* @return \Generator<positive-int, ResultBucketInterface<OutputType>, InputType|null, void>
*/
public function transform(): \Generator;
}

0 comments on commit 18f7504

Please sign in to comment.