Skip to content

[4.2] PHP8.2 Define tags variable in helper class#39600

Merged
roland-d merged 4 commits intojoomla:4.2-devfrom
Digital-Peak:php82/tags
Jan 11, 2023
Merged

[4.2] PHP8.2 Define tags variable in helper class#39600
roland-d merged 4 commits intojoomla:4.2-devfrom
Digital-Peak:php82/tags

Conversation

@laoneo
Copy link
Copy Markdown
Member

@laoneo laoneo commented Jan 11, 2023

Summary of Changes

Define the tags property in the TagsHelper class to prevent deprecation notice on PHP 8.2.

Testing Instructions

Open the article form on the PHP 8.2 on the front end with debug enabled.

Actual result BEFORE applying this Pull Request

The following warning is shown:
Creation of dynamic property Joomla\CMS\Helper\TagsHelper::$tags is deprecated in

Expected result AFTER applying this Pull Request

No warning.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@laoneo laoneo added PHP 8.x PHP 8.x deprecated issues and removed PR-4.2-dev labels Jan 11, 2023
@alikon
Copy link
Copy Markdown
Contributor

alikon commented Jan 11, 2023

I have tested this item ✅ successfully on 263bbdd

code review


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

@joomdonation
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 07ae895


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

@joomdonation
Copy link
Copy Markdown
Contributor

I restored @alikon's test result because the last change is just a docblock change. RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 11, 2023
@roland-d roland-d merged commit cc2597a into joomla:4.2-dev Jan 11, 2023
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jan 11, 2023
@roland-d
Copy link
Copy Markdown
Contributor

Thank you

@roland-d roland-d deleted the php82/tags branch January 11, 2023 19:43
@roland-d roland-d added this to the Joomla! 4.2.7 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PHP 8.x PHP 8.x deprecated issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants