*/ final class ThrowingRequest extends Request { public static function getMethod(): string { return 'test/throwing'; } protected static function fromParams(?array $params): static { throw new \TypeError('Internal detail that must not leak to the client.'); } protected function getParams(): ?array { return null; } }