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.
Created by Cesar Ivan Carreras Mabarak
·