? ? ? Pending

User tests: Successful: Unsuccessful:

avatar beat
beat
21 Jan 2022

Fixes Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in administrator/modules/mod_menu/menu.php on line 383

Pull Request for Issue # none

Summary of Changes

Sometimes item is null, but in PHP 8.1, trim accepts only string type, not null.

Testing Instructions

Code-review could perfectly be enough as it's obvious.

Look at admin area of 3.10, and see error.

Actual result BEFORE applying this Pull Request

Passing null to parameter #1 ($string) of type string is deprecated in administrator/modules/mod_menu/menu.php on line 383

Expected result AFTER applying this Pull Request

That warning disappears.

Documentation Changes Required

None.

avatar beat beat - open - 21 Jan 2022
avatar beat beat - change - 21 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jan 2022
Category Modules Administration
avatar beat
beat - comment - 21 Jan 2022

Drone failure here is due to a server issue (database connection), independent of this PR.

avatar richard67
richard67 - comment - 22 Jan 2022

I have tested this item successfully on d53fc78

Code review.


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

avatar richard67 richard67 - test_item - 22 Jan 2022 - Tested successfully
avatar Fedik
Fedik - comment - 22 Jan 2022

I have tested this item successfully on d53fc78


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

avatar Fedik Fedik - test_item - 22 Jan 2022 - Tested successfully
avatar Fedik Fedik - change - 22 Jan 2022
Status Pending Ready to Commit
avatar Fedik
Fedik - comment - 22 Jan 2022

R2C


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

avatar beat beat - change - 23 Jan 2022
Labels Added: ? ? ?
avatar zero-24
zero-24 - comment - 23 Jan 2022

Will take this thanks @beat

avatar zero-24 zero-24 - change - 23 Jan 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-01-23 18:31:49
Closed_By zero-24
avatar zero-24 zero-24 - close - 23 Jan 2022
avatar zero-24 zero-24 - merge - 23 Jan 2022

Add a Comment

Login with GitHub to post a comment