From 22a1aac84a08a863d26adefe285b7c97da76a016 Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 18 Jun 2021 22:08:47 +0100 Subject: [PATCH] Fixes types --- src/Expectation.php | 4 ++-- src/HigherOrderExpectation.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Expectation.php b/src/Expectation.php index 32299dc2..e41f21d0 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -138,9 +138,9 @@ final class Expectation /** * Allows you to specify a sequential set of expectations for each item in a iterable "value". * - * @template TValue + * @template TSequenceValue * - * @param callable(self, self): void|TValue ...$callbacks + * @param callable(self, self): void|TSequenceValue ...$callbacks */ public function sequence(...$callbacks): Expectation { diff --git a/src/HigherOrderExpectation.php b/src/HigherOrderExpectation.php index 14c8504c..6e2ed23f 100644 --- a/src/HigherOrderExpectation.php +++ b/src/HigherOrderExpectation.php @@ -65,6 +65,8 @@ final class HigherOrderExpectation /** * Dynamically calls methods on the class with the given arguments. + * + * @param array $arguments */ public function __call(string $name, array $arguments): self { @@ -112,6 +114,8 @@ final class HigherOrderExpectation /** * Performs the given assertion with the current expectation. + * + * @param array $arguments */ private function performAssertion(string $name, array $arguments): self {