Remove support of egulias/email-validator v2

Created on 19 January 2022, over 3 years ago
Updated 29 July 2025, 5 days ago

Problem/Motivation

In #3258005: Handle a new version of egulias/email-validator and EmailParser return results β†’ we added a workaround to support both Major versions of egulias/email-validator library: 2 and 3.
At the time we do not support Drupal 9.2, we can remove the condition and use a new version only. This task will be postponed until we support Drupal 9.2 and below in the branch.

Proposed resolution

Remove the support of associative array in this code snippet:

if (is_object($emailParser->parse($from))) {
  return $emailParser->getDomainPart();
}
else {
  return $emailParser->parse($from)['domain'];
}

Remaining tasks

Wait.

πŸ“Œ Task
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Matroskeen πŸ‡ΊπŸ‡¦ Ukraine, Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine bohart Lutsk, Ukraine

    Changed the version of this issue. Mailgun 2.1.0 is now released, which means new developments and disruptive changes should be targeted against the 2.1.x-dev branch.

    Merge requests from the community will be incredibly welcome.
    Note: Only GitLab merge requests (not *.patch files) are reviewed by the currently active maintainer.

    Thanks!

Production build 0.71.5 2024