PHP SDK - Get Hard bounce suppressed recipients gives validation error (Optional Param)
P
Proposed Hoverfly
In the PHP SDK, the method signature for fetching hard bounces indicates that the $page parameter is optional and nullable:
However, if you invoke this method without passing a page argument (or passing null), the SDK includes the empty key in the API request query string. This triggers a strict server-side validation error from the MailerSend API:
MailerSendValidationException: The page must be at least 1
To bypass this, developers are forced to explicitly pass 1 even if they just want the default first page, but it's not helpful if you don't know how many pages there are.
Agathe Brusset
Hello Proposed Hoverfly! Thanks for flagging this — really helpful details. We’ll check the PHP SDK behavior around the optional/nullable $page param (and the empty query key causing the “page must be at least 1” validation error) and get back to you soon.