From 18f75049a19c137ba46c8b7d10dce4e4a502cf39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Planchat?= Date: Tue, 14 Nov 2023 11:45:05 +0100 Subject: [PATCH] Updated the contracts --- 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 fe50932..9a4f969 100644 --- a/src/LoaderInterface.php +++ b/src/LoaderInterface.php @@ -15,7 +15,7 @@ interface LoaderInterface /** * Loads data in the given sink. * - * @return \Generator, InputType, void> + * @return \Generator, InputType|null, void> */ public function load(): \Generator; } diff --git a/src/PipelineRunnerInterface.php b/src/PipelineRunnerInterface.php index a3d87c4..aed94e0 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, void> $coroutine + * @param \Generator, InputType|null, void> $coroutine * @param StepRejectionInterface $rejection * @param StepStateInterface $state * @return \Iterator|null> diff --git a/src/TransformerInterface.php b/src/TransformerInterface.php index 18d731a..dea18c2 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, void> + * @return \Generator, InputType|null, void> */ public function transform(): \Generator; }