mirror of
https://github.com/pestphp/pest.git
synced 2026-12-05 07:15:33 +01:00
Update docblock for toThrow method parameters to satisfy the actual pest's behaviour (#2008)
Signed-off-by: Alexandru Punga <45293316+Sanchous98@users.noreply.github.com>
This commit is contained in:
@@ -806,7 +806,9 @@ final class Expectation
|
||||
}
|
||||
|
||||
/**
|
||||
* @param (Closure(Throwable): mixed)|string $exception
|
||||
* @template T of Throwable
|
||||
*
|
||||
* @param (Closure(T): mixed)|string|T $exception
|
||||
* @return self<TValue>
|
||||
*/
|
||||
public function toThrow(callable|string|Throwable $exception, ?string $exceptionMessage = null, string $message = ''): self
|
||||
|
||||
Reference in New Issue
Block a user