mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Improves type-hinting for tap method
This commit is contained in:
@ -5,6 +5,8 @@ declare(strict_types=1);
|
|||||||
namespace Pest\Support;
|
namespace Pest\Support;
|
||||||
|
|
||||||
use Pest\Expectation;
|
use Pest\Expectation;
|
||||||
|
use Pest\PendingObjects\TestCall;
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
@ -50,11 +52,9 @@ final class HigherOrderCallables
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @template TValue
|
* Tap into the test case to perform an action and return the test case.
|
||||||
*
|
*
|
||||||
* @param callable(): TValue $callable
|
* @return TestCall|TestCase|object
|
||||||
*
|
|
||||||
* @return TValue|object
|
|
||||||
*/
|
*/
|
||||||
public function tap(callable $callable)
|
public function tap(callable $callable)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user