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:
Alexandru Punga
2026-10-31 16:45:57 +02:00
committed by GitHub
parent 4403166d4e
commit a9d66a0ebe
+3 -1
View File
@@ -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