Skip to content

[4.2] PHP8.2 Add the missing props to the calendar form field#39605

Merged
HLeithner merged 2 commits intojoomla:4.2-devfrom
Digital-Peak:php82/field/calendar
Jan 12, 2023
Merged

[4.2] PHP8.2 Add the missing props to the calendar form field#39605
HLeithner merged 2 commits intojoomla:4.2-devfrom
Digital-Peak:php82/field/calendar

Conversation

@laoneo
Copy link
Copy Markdown
Member

@laoneo laoneo commented Jan 11, 2023

Summary of Changes

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

Testing Instructions

Open the Publishing 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\CalendarField::$todaybutton 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 the PHP 8.x PHP 8.x deprecated issues label Jan 11, 2023
@joomdonation
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 75bf44b


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

@alikon
Copy link
Copy Markdown
Contributor

alikon commented Jan 12, 2023

I have tested this item ✅ successfully on 75bf44b


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

@Quy Quy added PHP 8 and removed PHP 8.x PHP 8.x deprecated issues labels Jan 12, 2023
@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jan 12, 2023

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 12, 2023
@Quy Quy added PHP 8.x PHP 8.x deprecated issues and removed PHP 8 labels Jan 12, 2023
@HLeithner HLeithner merged commit 7835eee 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/calendar 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.

6 participants