mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Fixes types
This commit is contained in:
@ -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
|
||||
{
|
||||
|
||||
@ -65,6 +65,8 @@ final class HigherOrderExpectation
|
||||
|
||||
/**
|
||||
* Dynamically calls methods on the class with the given arguments.
|
||||
*
|
||||
* @param array<int, mixed> $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<int, mixed> $arguments
|
||||
*/
|
||||
private function performAssertion(string $name, array $arguments): self
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user