Skip to content

Commit

Permalink
Fix error Fatal error: Uncaught TypeError: Mailgun\Api\Domain::index(…
Browse files Browse the repository at this point in the history
…) in case of Array Hydrator (#866)
  • Loading branch information
oleksandr-mykhailenko committed Jun 23, 2023
1 parent 92a5f54 commit 5039483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ class Domain extends HttpApi
* Returns a list of domains on the account.
* @param int $limit
* @param int $skip
* @return IndexResponse
* @return IndexResponse|array
* @throws ClientExceptionInterface
* @throws Exception
*/
public function index(int $limit = 100, int $skip = 0): IndexResponse
public function index(int $limit = 100, int $skip = 0)
{
Assert::range($limit, 1, 1000);

Expand Down

0 comments on commit 5039483

Please sign in to comment.