Skip to content

[4.2] PHP8.2 Add the missing props to the rules form field#39606

Merged
HLeithner merged 1 commit intojoomla:4.2-devfrom
Digital-Peak:php82/field/rules
Jan 12, 2023
Merged

[4.2] PHP8.2 Add the missing props to the rules form field#39606
HLeithner merged 1 commit intojoomla:4.2-devfrom
Digital-Peak:php82/field/rules

Conversation

@laoneo
Copy link
Copy Markdown
Member

@laoneo laoneo commented Jan 11, 2023

Summary of Changes

Define the missing properties in the RulesField class to prevent deprecation notice on PHP 8.2.

Testing Instructions

Open the Permissions tab in the article form on PHP 8.2 on the back end with debug enabled.

Actual result BEFORE applying this Pull Request

The following warning is shown:
Creation of dynamic property Joomla\CMS\Form\Field\RulesField::$groups 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

Testing Instructions

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

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 the PHP 8.x PHP 8.x deprecated issues label Jan 11, 2023
@carlitorweb
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on 974ab99


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

@joomdonation
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 974ab99

Sorry, you added the mentioned property already.


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

@joomla-cms-bot joomla-cms-bot removed PHP 8.x PHP 8.x deprecated issues PR-4.2-dev labels Jan 12, 2023
@joomdonation
Copy link
Copy Markdown
Contributor

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 12, 2023
@richard67 richard67 added PHP 8.x PHP 8.x deprecated issues PR-4.2-dev labels Jan 12, 2023
@HLeithner HLeithner merged commit a1f2c6a into joomla:4.2-dev Jan 12, 2023
@HLeithner
Copy link
Copy Markdown
Member

thanks

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jan 12, 2023
@laoneo laoneo deleted the php82/field/rules branch January 12, 2023 16:18
@Quy Quy added this to the Joomla! 4.2.7 milestone Jan 13, 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.

7 participants