From d65cc9be842a25fce1cde01da699d84532bb24ae Mon Sep 17 00:00:00 2001 From: luke Date: Sat, 27 Nov 2021 19:20:29 +0000 Subject: [PATCH] Improved generics for higher order --- src/Each.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Each.php b/src/Each.php index 6a8a499d..19105945 100644 --- a/src/Each.php +++ b/src/Each.php @@ -7,9 +7,9 @@ namespace Pest; /** * @internal * - * @template TEachValue + * @template TValue * - * @mixin Expectation + * @mixin Expectation */ final class Each { @@ -18,7 +18,7 @@ final class Each /** * Creates an expectation on each item of the iterable "value". * - * @param Expectation $original + * @param Expectation $original */ public function __construct(private Expectation $original) { @@ -27,11 +27,11 @@ final class Each /** * Creates a new expectation. * - * @template TValue + * @template TAndValue * - * @param TValue $value + * @param TAndValue $value * - * @return Expectation + * @return Expectation */ public function and(mixed $value): Expectation { @@ -41,7 +41,7 @@ final class Each /** * Creates the opposite expectation for the value. * - * @return self + * @return self */ public function not(): Each { @@ -55,7 +55,7 @@ final class Each * * @param array $arguments * - * @return self + * @return self */ public function __call(string $name, array $arguments): Each { @@ -72,7 +72,7 @@ final class Each /** * Dynamically calls methods on the class without any arguments on each item. * - * @return self + * @return self */ public function __get(string $name): Each {