Skip to content

[Bug]: Mailgun Tracking Event Not Working - Return value must be of type ?string, array returned #63

@Wijnands

Description

@Wijnands

What happened?

I am encountering an issue where the tracking event is not working because it is expecting an string but gets an array as return.

Vormkracht10\Mails\Drivers\MailgunDriver::getUuidFromPayload(): Return value must be of type ?string, array returned

public function getUuidFromPayload(array $payload): ?string
{
return $payload['event-data']['user-variables'][$this->uuidHeaderName] ?? null;
}

How to reproduce the bug

  1. Install the package
  2. Create the Mailgun webhook url
  3. Enable tracking in config and create DNS record
  4. Send email

Package Version

2.10.0

PHP Version

8.4.0

Laravel Version

10.49.1

Which operating systems does with happen with?

No response

Notes

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions