mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 14:23:34 +02:00
chore: coding style changes
This commit is contained in:
@@ -12,19 +12,14 @@ use Pest\Expectation;
|
||||
*/
|
||||
final readonly class HigherOrderCallables
|
||||
{
|
||||
/**
|
||||
* Creates a new Higher Order Callables instances.
|
||||
*/
|
||||
public function __construct(private object $target)
|
||||
{
|
||||
// ..
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue
|
||||
*
|
||||
* Create a new expectation. Callable values will be executed prior to returning the new expectation.
|
||||
*
|
||||
* @param (Closure():TValue)|TValue $value
|
||||
* @return Expectation<TValue>
|
||||
*/
|
||||
@@ -39,8 +34,6 @@ final readonly class HigherOrderCallables
|
||||
/**
|
||||
* @template TValue
|
||||
*
|
||||
* Create a new expectation. Callable values will be executed prior to returning the new expectation.
|
||||
*
|
||||
* @param callable|TValue $value
|
||||
* @return Expectation<(callable(): mixed)|TValue>
|
||||
*/
|
||||
@@ -50,9 +43,6 @@ final readonly class HigherOrderCallables
|
||||
return $this->expect($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the given callable after the test has executed the setup method.
|
||||
*/
|
||||
public function defer(callable $callable): object
|
||||
{
|
||||
Reflection::bindCallableWithData($callable);
|
||||
|
||||
Reference in New Issue
Block a user