Skip to content

Conversation

@dgrammatiko
Copy link
Contributor

@dgrammatiko dgrammatiko commented Sep 20, 2025

Pull Request for Issue # .

Summary of Changes

Better variable handling to eliminate the deprecation warnings on PHP 8.5

Deprecated: Using null as an array offset is deprecated, use an empty string instead in xxx/libraries/src/HTML/Helpers/Select.php on line 495

Testing Instructions

Open the local url administrator/index.php?option=com_menus&view=item&client_id=0&layout=edit&id=101 and check the right sidebar for deprecations (PHP8.5 required and error reporting to max)

Actual result BEFORE applying this Pull Request

Deprecations logged

Expected result AFTER applying this Pull Request

No deprecations

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

@richard67

@richard67
Copy link
Member

@joomdonation As you have tested the other 2 PRs of the same kind: Could you also test this one? Thanks in advance.

@joomdonation
Copy link
Contributor

@richard67 Yes. Will look at it and test it later today

@joomdonation
Copy link
Contributor

I have tested this item ✅ successfully on 7b5fbde


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

1 similar comment
@brianteeman
Copy link
Contributor

I have tested this item ✅ successfully on 7b5fbde


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

@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Sep 29, 2025
Copy link
Contributor

@heelc29 heelc29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prevents Warning: Undefined array key

@richard67
Copy link
Member

Back to pending as the PR has received changes.


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

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Oct 1, 2025
@richard67
Copy link
Member

@joomdonation @brianteeman Could you test again? The PR has received some changes. Thanks in advance.

@joomdonation
Copy link
Contributor

@heelc29 @richard67 The latest changes are not needed. $options['option.attr'], $options['option.id'].... are initialized with it default value by this array https://github.com/joomla/joomla-cms/blob/5.4-dev/libraries/src/HTML/Helpers/Select.php#L34-L47, so using isset as in the last changes is not necessary at all. I would revert the last changes and set the PR back to RTC again

@dgrammatiko
Copy link
Contributor Author

I have reverted back to 7b5fbde

@richard67
Copy link
Member

@joomdonation Could you give it a quick retest just to be sure before we set RTC again? Thanks in advance.

@joomdonation
Copy link
Contributor

Tested it again and it is working. So I set this back to RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Oct 3, 2025
@HLeithner HLeithner added the bug label Oct 4, 2025
@richard67 richard67 modified the milestones: 5.4.1, Joomla! 5.4.1 Oct 7, 2025
@muhme
Copy link
Contributor

muhme commented Oct 15, 2025

Final test before merge using JBT php8.5-rc

  • Seen 4 Deprecated messages from two different line numbers before PR on
    'administrator/index.php?option=com_menus&view=item&client_id=0&layout=edit&id=101s'
  • Graft PR's full packge
    • ✅ no Deprecated anymore, not in any tab, opening menu item, creating new, trashing, filtering and deleting menu item is still working

@muhme muhme merged commit d09a64d into joomla:5.4-dev Oct 15, 2025
40 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Oct 15, 2025
@muhme
Copy link
Contributor

muhme commented Oct 15, 2025

Thank you @dgrammatiko for your contribution. Thank you @joomdonation and @heelc29 for supporting. Thank you @brianteeman, @heelc29 and @joomdonation for testing.

@dgrammatiko dgrammatiko deleted the patch-5 branch October 16, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants