FILE: smtp/src/PHPMailer/SMTP.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 390 | WARNING | Function each() is deprecated since PHP 7.2; Use a
     |         | foreach loop instead
 420 | WARNING | Function each() is deprecated since PHP 7.2; Use a
     |         | foreach loop instead
----------------------------------------------------------------------

Comments

artem0793 created an issue. See original summary.

artem0793’s picture

Assigned: artem0793 » Unassigned
Status: Active » Needs review
StatusFileSize
new443 bytes
jacob.embree’s picture

Issue tags: +PHP 7.2

The patch from #3002238: Function each() is deprecated since PHP 7.2 should be combined with this one.

jacob.embree’s picture

Status: Needs review » Needs work
mrgoodfellow’s picture

I couldn't find a ticket for the Drupal 7 version to apply the same fix.

alberto56’s picture

Status: Needs work » Needs review
StatusFileSize
new1.18 KB

I combined the patches from #3002238: Function each() is deprecated since PHP 7.2 and #3080175: Function each() is deprecated since PHP 7.2 with this one. I also changed another instance of "each()" in PHPMailer.php

wundo’s picture

Priority: Normal » Major

  • wundo committed ebbf0f9 on 8.x-1.x authored by alberto56
    Issue #3002226 by artem0793, alberto56, jacob.embree, mrgoodfellow,...
wundo’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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