User tests: Successful: Unsuccessful:
Fix deprecation warning with PHP 8.1+
If a replacement string is used, but no 'quicktask' is defined $params->get('menu-quicktask')
will return null
which triggers:
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in administrator/components/com_menus/src/Helper/MenusHelper.php on line 894
deprecation warning with PHP 8.1+
No deprecation warning with PHP 8.1+
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
Category | ⇒ | Administration com_menus |
Status | New | ⇒ | Pending |
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-02-17 17:16:22 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
PHP 8.x
|
I have tested this item✅ successfully on 5587796
Code review !
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39881.