From 224cf14efe07df6ccd5d2b35eb7fba3bad7823c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Planchat?= Date: Tue, 14 Nov 2023 14:28:21 +0100 Subject: [PATCH] Fixing PHPStan level 4 issues --- src/LoaderInterface.php | 2 +- src/PipelineRunnerInterface.php | 2 +- src/TransformerInterface.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LoaderInterface.php b/src/LoaderInterface.php index 9a4f969..5218497 100644 --- a/src/LoaderInterface.php +++ b/src/LoaderInterface.php @@ -15,7 +15,7 @@ interface LoaderInterface /** * Loads data in the given sink. * - * @return \Generator, InputType|null, void> + * @return \Generator, ResultBucketInterface, InputType|null, void> */ public function load(): \Generator; } diff --git a/src/PipelineRunnerInterface.php b/src/PipelineRunnerInterface.php index aed94e0..66aa9a0 100644 --- a/src/PipelineRunnerInterface.php +++ b/src/PipelineRunnerInterface.php @@ -13,7 +13,7 @@ interface PipelineRunnerInterface * @template OutputType of non-empty-array|object * * @param \Iterator $source - * @param \Generator, InputType|null, void> $coroutine + * @param \Generator, ResultBucketInterface, InputType|null, void> $coroutine * @param StepRejectionInterface $rejection * @param StepStateInterface $state * @return \Iterator|null> diff --git a/src/TransformerInterface.php b/src/TransformerInterface.php index dea18c2..29f01ea 100644 --- a/src/TransformerInterface.php +++ b/src/TransformerInterface.php @@ -15,7 +15,7 @@ interface TransformerInterface /** * Transforms the data from one format to another. * - * @return \Generator, InputType|null, void> + * @return \Generator, ResultBucketInterface, InputType|null, void> */ public function transform(): \Generator; }