From f9b7c1c3d95937a52172cf272c1ace5f7cc9d98e Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 31 Aug 2021 10:39:20 +0200 Subject: [PATCH] Fix interfaces (to backport to master) --- src/Contract/Operation/Pluckable.php | 2 +- src/Contract/Operation/Scaleable.php | 2 +- src/Contract/Operation/Splitable.php | 2 +- src/Contract/Operation/Unfoldable.php | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Contract/Operation/Pluckable.php b/src/Contract/Operation/Pluckable.php index d78c83d6d..a9e95d3f0 100644 --- a/src/Contract/Operation/Pluckable.php +++ b/src/Contract/Operation/Pluckable.php @@ -26,7 +26,7 @@ interface Pluckable * @param array|array-key $pluck * @param mixed|null $default * - * @return Collection + * @return Collection> */ public function pluck($pluck, $default = null): Collection; } diff --git a/src/Contract/Operation/Scaleable.php b/src/Contract/Operation/Scaleable.php index 6a9c5caec..f5a6ce1b3 100644 --- a/src/Contract/Operation/Scaleable.php +++ b/src/Contract/Operation/Scaleable.php @@ -23,7 +23,7 @@ interface Scaleable * * @see https://loophp-collection.readthedocs.io/en/stable/pages/api.html#scale * - * @return Collection + * @return Collection */ public function scale( float $lowerBound, diff --git a/src/Contract/Operation/Splitable.php b/src/Contract/Operation/Splitable.php index 459e247a6..1ac8426f1 100644 --- a/src/Contract/Operation/Splitable.php +++ b/src/Contract/Operation/Splitable.php @@ -33,7 +33,7 @@ interface Splitable * * @param callable ...$callbacks * - * @return Collection + * @return Collection> */ public function split(int $type = Splitable::BEFORE, callable ...$callbacks): Collection; } diff --git a/src/Contract/Operation/Unfoldable.php b/src/Contract/Operation/Unfoldable.php index c63fffaf2..59e5d6623 100644 --- a/src/Contract/Operation/Unfoldable.php +++ b/src/Contract/Operation/Unfoldable.php @@ -14,14 +14,13 @@ interface Unfoldable { /** - * @template TKey * @template TKey * @template T * * @param callable(mixed|T...): (mixed|array) $callback * @param T ...$parameters * - * @return Collection + * @return Collection */ public static function unfold(callable $callback, ...$parameters): Collection; }