mirror of
https://github.com/pestphp/pest.git
synced 2026-03-08 08:47:22 +01:00
refacto: 100% type coverage
This commit is contained in:
@ -18,11 +18,9 @@ final class ExceptionTrace
|
||||
/**
|
||||
* Ensures the given closure reports the good execution context.
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @throws Throwable
|
||||
*/
|
||||
public static function ensure(Closure $closure)
|
||||
public static function ensure(Closure $closure): mixed
|
||||
{
|
||||
try {
|
||||
return $closure();
|
||||
|
||||
Reference in New Issue
Block a user