Skip to content

Commit

Permalink
Fixing PHPStan level 4 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gplanchat committed Nov 14, 2023
1 parent 18f7504 commit 224cf14
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<positive-int, ResultBucketInterface<OutputType>, InputType|null, void>
* @return \Generator<int<0, max>, 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|null, void> $coroutine
* @param \Generator<int<0, max>, 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<positive-int, ResultBucketInterface<OutputType>, InputType|null, void>
* @return \Generator<int<0, max>, ResultBucketInterface<OutputType>, InputType|null, void>
*/
public function transform(): \Generator;
}

0 comments on commit 224cf14

Please sign in to comment.