? PHP 8.x ? Pending

User tests: Successful: Unsuccessful:

avatar heelc29
heelc29
27 Dec 2022

Summary of Changes

The creation of dynamic properties is deprecated

https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dynamic-properties

Testing Instructions

Open frontend where mod_articles_latest and/or mod_articles_news are displayed

Actual result BEFORE applying this Pull Request

PHP Deprecated: Creation of dynamic property Joomla\Module\ArticlesLatest\Site\Dispatcher\Dispatcher::$helper is deprecated in libraries/src/Helper/HelperFactoryAwareTrait.php on line 61
PHP Deprecated: Creation of dynamic property Joomla\Module\ArticlesNews\Site\Dispatcher\Dispatcher::$helper is deprecated in libraries/src/Helper/HelperFactoryAwareTrait.php on line 61

Expected result AFTER applying this Pull Request

No deprecated message

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

ping @laoneo who introduced helper factory aware interface in #37445
I'm not sure if this the "right" fix for b/c, also the variable names of the interface and trait do not match:

public function setHelperFactory(HelperFactory $helper);

public function setHelperFactory(HelperFactory $helperFactory)

avatar joomla-cms-bot joomla-cms-bot - change - 27 Dec 2022
Category Libraries
avatar heelc29 heelc29 - open - 27 Dec 2022
avatar heelc29 heelc29 - change - 27 Dec 2022
Status New Pending
avatar laoneo
laoneo - comment - 11 Jan 2023

This is ok like that. Was probably a copy paste error at that time.

avatar laoneo laoneo - test_item - 11 Jan 2023 - Tested successfully
avatar laoneo
laoneo - comment - 11 Jan 2023

I have tested this item successfully on 986bdb3


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

avatar carlitorweb carlitorweb - test_item - 12 Jan 2023 - Tested successfully
avatar carlitorweb
carlitorweb - comment - 12 Jan 2023

I have tested this item successfully on 986bdb3


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

avatar Quy Quy - change - 12 Jan 2023
Status Pending Ready to Commit
Labels Added: ? ?
avatar Quy
Quy - comment - 12 Jan 2023

RTC


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

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:22:27
Closed_By HLeithner
Labels Added: ? PHP 8.x
Removed: ?
avatar HLeithner HLeithner - close - 12 Jan 2023
avatar HLeithner HLeithner - merge - 12 Jan 2023
avatar HLeithner
HLeithner - comment - 12 Jan 2023

thanks

avatar MarkRS-UK
MarkRS-UK - comment - 18 May 2023

Presumably this didn't get into 4.2.7? Still seems to be a problem on 4.3.1. I'm seeing

Deprecated: Creation of dynamic property JFormFieldMediaJce::$mediatype is deprecated in <mySite>/libraries/src/Form/FormField.php on line 591

Add a Comment

Login with GitHub to post a comment