Skip to content

Commit

Permalink
chore: adjusts style
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jun 13, 2023
1 parent 3c20e81 commit 7460bd6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/Expectation.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function each(callable $callback = null): EachExpectation
*
* @template TSequenceValue
*
* @param (callable(self<TValue>, self<string|int>): void)|TSequenceValue ...$callbacks
* @param (callable(self<TValue>, self<string|int>): void)|TSequenceValue ...$callbacks
* @return self<TValue>
*/
public function sequence(mixed ...$callbacks): self
Expand Down Expand Up @@ -210,8 +210,8 @@ public function sequence(mixed ...$callbacks): self
*
* @template TMatchSubject of array-key
*
* @param (callable(): TMatchSubject)|TMatchSubject $subject
* @param array<TMatchSubject, (callable(self<TValue>): mixed)|TValue> $expressions
* @param (callable(): TMatchSubject)|TMatchSubject $subject
* @param array<TMatchSubject, (callable(self<TValue>): mixed)|TValue> $expressions
* @return self<TValue>
*/
public function match(mixed $subject, array $expressions): self
Expand Down Expand Up @@ -248,7 +248,7 @@ public function match(mixed $subject, array $expressions): self
/**
* Apply the callback if the given "condition" is falsy.
*
* @param (callable(): bool)|bool $condition
* @param (callable(): bool)|bool $condition
* @param callable(Expectation<TValue>): mixed $callback
* @return self<TValue>
*/
Expand All @@ -264,7 +264,7 @@ public function unless(callable|bool $condition, callable $callback): Expectatio
/**
* Apply the callback if the given "condition" is truthy.
*
* @param (callable(): bool)|bool $condition
* @param (callable(): bool)|bool $condition
* @param callable(self<TValue>): mixed $callback
* @return self<TValue>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Mixins/Expectation.php
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ public function toContainOnlyInstancesOf(string $class, string $message = ''): s
/**
* Asserts that executing value throws an exception.
*
* @param (Closure(Throwable): mixed)|string $exception
* @param (Closure(Throwable): mixed)|string $exception
* @return self<TValue>
*/
public function toThrow(callable|string|Throwable $exception, string $exceptionMessage = null, string $message = ''): self
Expand Down
2 changes: 1 addition & 1 deletion src/PendingCalls/TestCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function throws(string|int $exception, string $exceptionMessage = null, i
/**
* 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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Support/HigherOrderCallables.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(private readonly object $target)
*
* 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<TValue>
*/
public function expect(mixed $value): Expectation
Expand Down

0 comments on commit 7460bd6

Please sign in to comment.