mailgun / mailgun-php

Mailgun's Official SDK for PHP
http://www.mailgun.com
MIT License
1.09k stars 314 forks source link

Fatal error: Uncaught TypeError: Mailgun\Api\Domain::index() #865

Closed Pascal76 closed 1 year ago

Pascal76 commented 1 year ago

Hello,

I have this error since some time (I think 28-May-2023) and not before.

Fatal error: Uncaught TypeError: Mailgun\Api\Domain::index(): Return value must be of type Mailgun\Model\Domain\IndexResponse, array returned in <...>/vendor/mailgun/mailgun-php/src/Api/Domain.php on line 63

The code: $configurator = new HttpClientConfigurator(); $configurator->setApiKey($client_mailgun_key); $mg = new Mailgun($configurator, new ArrayHydrator()); $domains_mg = $mg->domains()->index();

oleksandr-mykhailenko commented 1 year ago

Hello @Pascal76 We will check this issue and will back with answer

oleksandr-mykhailenko commented 1 year ago

Hello @Pascal76 Issues was fixed and released