use Throwable;
class InvalidResponseException extends Exception
{
public function __construct(Validator $validator, ?Throwable $previous = null)
{
// ...
}
This reports Exception is not chainable. It must have optional \Throwable as last constructor argument and has "Throwable".
This reports
Exception is not chainable. It must have optional \Throwable as last constructor argument and has "Throwable".