mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 16:27:23 +01:00
wip toward lvl9
This commit is contained in:
@ -31,7 +31,10 @@ final class HigherOrderCallables
|
||||
*/
|
||||
public function expect(mixed $value): Expectation
|
||||
{
|
||||
return new Expectation($value instanceof Closure ? Reflection::bindCallableWithData($value) : $value);
|
||||
/** @var TValue $value */
|
||||
$value = $value instanceof Closure ? Reflection::bindCallableWithData($value) : $value;
|
||||
|
||||
return new Expectation($value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user