Problem/Motivation

Address::create attempts to throw a PHP LogicException if it doesn't recognize the content of the $address param.

Steps to reproduce

Call Address::create(null);.

Observe that the following error is generated:

Notice: Undefined variable: result in Drupal\symfony_mailer\Address::convert();

Proposed resolution

Prefix LogicException with a backslash in order to reference the correct namespace.

CommentFileSizeAuthor
#2 3281725-missing-namespace-for-2.diff414 bytesznerol

Comments

znerol created an issue. See original summary.

znerol’s picture

Status: Active » Needs review
StatusFileSize
new414 bytes
adamps’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Plan to commit

Thanks looks good to me I will commit soon

  • AdamPS committed fd2eb34 on 1.x authored by znerol
    Issue #3281725 by znerol: Missing namespace for LogicException in...
adamps’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Plan to commit

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.