? PHP 8.x ? Pending

User tests: Successful: Unsuccessful:

avatar heelc29
heelc29
26 Dec 2022

Summary of Changes

Callables that are not accepted by the $callable() syntax (but are accepted by call_user_func()) are deprecated.

https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.relative-callables
https://wiki.php.net/rfc/deprecate_partially_supported_callables

Testing Instructions

Change following line in MailTemplate to $this->mailer->addRecipient($recipient->mail, $recipient->name); to use the function of the Mail class (because I don't find any use in the core)

$this->mailer->addAddress($recipient->mail, $recipient->name);

Actual result BEFORE applying this Pull Request

PHP Deprecated: Use of "parent" in callables is deprecated in libraries/src/Mail/Mail.php on line 301

Expected result AFTER applying this Pull Request

No deprecated message

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar joomla-cms-bot joomla-cms-bot - change - 26 Dec 2022
Category Libraries
avatar heelc29 heelc29 - open - 26 Dec 2022
avatar heelc29 heelc29 - change - 26 Dec 2022
Status New Pending
avatar laoneo laoneo - test_item - 11 Jan 2023 - Tested successfully
avatar laoneo
laoneo - comment - 11 Jan 2023

I have tested this item successfully on 2ca3012

Tested while sending a mail with DPCalendar


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39500.

avatar laoneo laoneo - change - 11 Jan 2023
Labels Added: PHP 8.x ?
avatar joomdonation joomdonation - test_item - 12 Jan 2023 - Tested successfully
avatar joomdonation
joomdonation - comment - 12 Jan 2023

I have tested this item successfully on da9204e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39500.

avatar joomdonation joomdonation - alter_testresult - 12 Jan 2023 - laoneo: Tested successfully
avatar joomdonation joomdonation - change - 12 Jan 2023
Status Pending Ready to Commit
avatar joomdonation
joomdonation - comment - 12 Jan 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39500.

avatar HLeithner HLeithner - change - 12 Jan 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-01-12 15:19:20
Closed_By HLeithner
Labels Added: ?
avatar HLeithner HLeithner - close - 12 Jan 2023
avatar HLeithner HLeithner - merge - 12 Jan 2023
avatar HLeithner
HLeithner - comment - 12 Jan 2023

Thanks

Add a Comment

Login with GitHub to post a comment