Skip to content

[4.2] PHP8.2 deprecated dynamic properties#39502

Merged
HLeithner merged 2 commits intojoomla:4.2-devfrom
heelc29:4.2/php82/dynamic-properties/sqlfield
Jan 12, 2023
Merged

[4.2] PHP8.2 deprecated dynamic properties#39502
HLeithner merged 2 commits intojoomla:4.2-devfrom
heelc29:4.2/php82/dynamic-properties/sqlfield

Conversation

@heelc29
Copy link
Copy Markdown
Contributor

@heelc29 heelc29 commented Dec 26, 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

Add header property to magic __get and __set methods

Testing Instructions

Open category edit view with workflows enabled (com_categories/category/edit)

Actual result BEFORE applying this Pull Request

PHP Deprecated: Creation of dynamic property Joomla\CMS\Form\Field\SqlField::$header is deprecated in libraries/src/Form/FormField.php on line 591

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

@laoneo laoneo added the PHP 8.x PHP 8.x deprecated issues label Jan 3, 2023
@laoneo
Copy link
Copy Markdown
Member

laoneo commented Jan 11, 2023

I have tested this item ✅ successfully on c7038ba


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

@laoneo
Copy link
Copy Markdown
Member

laoneo commented Jan 11, 2023

The CalendarField has the same issue.

@carlitorweb
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on 7975d0c


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

@joomdonation
Copy link
Copy Markdown
Contributor

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 12, 2023
@HLeithner HLeithner merged commit d0f2559 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
@Quy Quy added this to the Joomla! 4.2.7 milestone Jan 13, 2023
@heelc29 heelc29 deleted the 4.2/php82/dynamic-properties/sqlfield branch January 15, 2023 11:44
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.

8 participants