From 0b9624d9eacccb344338dacca6975af849d32426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Planchat?= Date: Tue, 14 Nov 2023 15:39:36 +0100 Subject: [PATCH] Fixing PHPStan level 9 issues --- src/ExtractingInterface.php | 2 +- src/ExtractorInterface.php | 2 +- src/FlushableInterface.php | 2 +- src/LoaderInterface.php | 4 ++-- src/LoadingInterface.php | 4 ++-- src/PipelineRunnerInterface.php | 4 ++-- src/StepRejectionInterface.php | 2 +- src/TransformerInterface.php | 4 ++-- src/TransformingInterface.php | 4 ++-- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/ExtractingInterface.php b/src/ExtractingInterface.php index fe6db1a..e4bf4d0 100644 --- a/src/ExtractingInterface.php +++ b/src/ExtractingInterface.php @@ -7,7 +7,7 @@ interface ExtractingInterface { /** - * @template OutputType of non-empty-array|object + * @template OutputType * * @param ExtractorInterface $extractor */ diff --git a/src/ExtractorInterface.php b/src/ExtractorInterface.php index 452aa93..d12c282 100644 --- a/src/ExtractorInterface.php +++ b/src/ExtractorInterface.php @@ -6,7 +6,7 @@ use Kiboko\Contract\Bucket\ResultBucketInterface; -/** @template OutputType of non-empty-array|object */ +/** @template OutputType */ interface ExtractorInterface { /** diff --git a/src/FlushableInterface.php b/src/FlushableInterface.php index cb0ad63..e17731b 100644 --- a/src/FlushableInterface.php +++ b/src/FlushableInterface.php @@ -7,7 +7,7 @@ use Kiboko\Contract\Bucket\ResultBucketInterface; /** - * @template Type of non-empty-array|object + * @template Type */ interface FlushableInterface { diff --git a/src/LoaderInterface.php b/src/LoaderInterface.php index 6e92d4c..6c23aa4 100644 --- a/src/LoaderInterface.php +++ b/src/LoaderInterface.php @@ -7,8 +7,8 @@ use Kiboko\Contract\Bucket\ResultBucketInterface; /** - * @template InputType of non-empty-array|object - * @template OutputType of non-empty-array|object + * @template InputType + * @template OutputType */ interface LoaderInterface { diff --git a/src/LoadingInterface.php b/src/LoadingInterface.php index f44ec61..15a7663 100644 --- a/src/LoadingInterface.php +++ b/src/LoadingInterface.php @@ -7,8 +7,8 @@ interface LoadingInterface { /** - * @template InputType of non-empty-array|object - * @template OutputType of non-empty-array|object + * @template InputType + * @template OutputType * * @param LoaderInterface $loader */ diff --git a/src/PipelineRunnerInterface.php b/src/PipelineRunnerInterface.php index 28b86e0..9463d67 100644 --- a/src/PipelineRunnerInterface.php +++ b/src/PipelineRunnerInterface.php @@ -9,8 +9,8 @@ interface PipelineRunnerInterface { /** - * @template InputType of non-empty-array|object - * @template OutputType of non-empty-array|object + * @template InputType + * @template OutputType * * @param \Iterator $source * @param \Generator, InputType|null, void> $coroutine diff --git a/src/StepRejectionInterface.php b/src/StepRejectionInterface.php index 9d60ba0..60f79c0 100644 --- a/src/StepRejectionInterface.php +++ b/src/StepRejectionInterface.php @@ -5,7 +5,7 @@ namespace Kiboko\Contract\Pipeline; /** - * @template Type of non-empty-array|object + * @template Type */ interface StepRejectionInterface { diff --git a/src/TransformerInterface.php b/src/TransformerInterface.php index 129a181..7deb4f8 100644 --- a/src/TransformerInterface.php +++ b/src/TransformerInterface.php @@ -7,8 +7,8 @@ use Kiboko\Contract\Bucket\ResultBucketInterface; /** - * @template InputType of non-empty-array|object - * @template OutputType of non-empty-array|object + * @template InputType + * @template OutputType */ interface TransformerInterface { diff --git a/src/TransformingInterface.php b/src/TransformingInterface.php index 548d460..fcbd5b5 100644 --- a/src/TransformingInterface.php +++ b/src/TransformingInterface.php @@ -7,8 +7,8 @@ interface TransformingInterface { /** - * @template InputType of non-empty-array|object - * @template OutputType of non-empty-array|object + * @template InputType + * @template OutputType * * @param TransformerInterface $transformer */