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();
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();