mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +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".
|
* 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
|
public function sequence(...$callbacks): Expectation
|
||||||
{
|
{
|
||||||
|
|||||||
@ -65,6 +65,8 @@ final class HigherOrderExpectation
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Dynamically calls methods on the class with the given arguments.
|
* Dynamically calls methods on the class with the given arguments.
|
||||||
|
*
|
||||||
|
* @param array<int, mixed> $arguments
|
||||||
*/
|
*/
|
||||||
public function __call(string $name, array $arguments): self
|
public function __call(string $name, array $arguments): self
|
||||||
{
|
{
|
||||||
@ -112,6 +114,8 @@ final class HigherOrderExpectation
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs the given assertion with the current expectation.
|
* Performs the given assertion with the current expectation.
|
||||||
|
*
|
||||||
|
* @param array<int, mixed> $arguments
|
||||||
*/
|
*/
|
||||||
private function performAssertion(string $name, array $arguments): self
|
private function performAssertion(string $name, array $arguments): self
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user