From 7460bd6c1ff98243a85edec07d94b0dd58704cdd Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 13 Jun 2023 19:59:59 +0200 Subject: [PATCH] chore: adjusts style --- src/Expectation.php | 10 +++++----- src/Mixins/Expectation.php | 2 +- src/PendingCalls/TestCall.php | 2 +- src/Support/HigherOrderCallables.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Expectation.php b/src/Expectation.php index 537883bb..cb9b0361 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -167,7 +167,7 @@ final class Expectation * * @template TSequenceValue * - * @param (callable(self, self): void)|TSequenceValue ...$callbacks + * @param (callable(self, self): void)|TSequenceValue ...$callbacks * @return self */ public function sequence(mixed ...$callbacks): self @@ -210,8 +210,8 @@ final class Expectation * * @template TMatchSubject of array-key * - * @param (callable(): TMatchSubject)|TMatchSubject $subject - * @param array): mixed)|TValue> $expressions + * @param (callable(): TMatchSubject)|TMatchSubject $subject + * @param array): mixed)|TValue> $expressions * @return self */ public function match(mixed $subject, array $expressions): self @@ -248,7 +248,7 @@ final class Expectation /** * Apply the callback if the given "condition" is falsy. * - * @param (callable(): bool)|bool $condition + * @param (callable(): bool)|bool $condition * @param callable(Expectation): mixed $callback * @return self */ @@ -264,7 +264,7 @@ final class Expectation /** * Apply the callback if the given "condition" is truthy. * - * @param (callable(): bool)|bool $condition + * @param (callable(): bool)|bool $condition * @param callable(self): mixed $callback * @return self */ diff --git a/src/Mixins/Expectation.php b/src/Mixins/Expectation.php index 25043a48..385b0e95 100644 --- a/src/Mixins/Expectation.php +++ b/src/Mixins/Expectation.php @@ -839,7 +839,7 @@ final class Expectation /** * Asserts that executing value throws an exception. * - * @param (Closure(Throwable): mixed)|string $exception + * @param (Closure(Throwable): mixed)|string $exception * @return self */ public function toThrow(callable|string|Throwable $exception, string $exceptionMessage = null, string $message = ''): self diff --git a/src/PendingCalls/TestCall.php b/src/PendingCalls/TestCall.php index a4c45a7b..99e45291 100644 --- a/src/PendingCalls/TestCall.php +++ b/src/PendingCalls/TestCall.php @@ -84,7 +84,7 @@ final class TestCall /** * Asserts that the test throws the given `$exceptionClass` when called if the given condition is true. * - * @param (callable(): bool)|bool $condition + * @param (callable(): bool)|bool $condition */ public function throwsIf(callable|bool $condition, string|int $exception, string $exceptionMessage = null, int $exceptionCode = null): self { diff --git a/src/Support/HigherOrderCallables.php b/src/Support/HigherOrderCallables.php index f0248939..d47a0295 100644 --- a/src/Support/HigherOrderCallables.php +++ b/src/Support/HigherOrderCallables.php @@ -25,7 +25,7 @@ final class HigherOrderCallables * * Create a new expectation. Callable values will be executed prior to returning the new expectation. * - * @param (Closure():TValue)|TValue $value + * @param (Closure():TValue)|TValue $value * @return Expectation */ public function expect(mixed $value): Expectation