? ? PHP 8.x Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
20 Mar 2022

Summary of Changes

When editing a plugin a deprecated warning is displayed on PHP 8.1.

Testing Instructions

In the back end open a plugin form.

Actual result BEFORE applying this Pull Request

The following deprecated message is shown:
Deprecated: strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /libraries/src/Language/Language.php on line 1181

Expected result AFTER applying this Pull Request

No warning.

avatar laoneo laoneo - open - 20 Mar 2022
avatar laoneo laoneo - change - 20 Mar 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Mar 2022
Category Libraries
avatar laoneo laoneo - change - 20 Mar 2022
Labels Added: PHP 8.x
avatar zero-24
zero-24 - comment - 20 Mar 2022

how is the stack trace? null is never an valid language string right and should be fixed at the source.

avatar laoneo
laoneo - comment - 20 Mar 2022

It is again something which is supported since a long time, so it should not throw a deprecate message on PHP 8.1. It appears on menu items, modules and probably also other places in core. Why not fixing the source instead of telling every extension dev to check if there is null passed?

avatar tecpromotion
tecpromotion - comment - 20 Mar 2022

I have tested this item successfully on 1034d1f

I have successfully tested the PR independently of the discussion.


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

avatar tecpromotion tecpromotion - test_item - 20 Mar 2022 - Tested successfully
avatar MacJoom
MacJoom - comment - 21 Mar 2022

I have tested this item successfully on 1034d1f


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

avatar MacJoom MacJoom - test_item - 21 Mar 2022 - Tested successfully
avatar laoneo laoneo - change - 22 Mar 2022
Status Pending Ready to Commit
avatar laoneo
laoneo - comment - 22 Mar 2022

rtc


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

avatar bembelimen bembelimen - change - 24 Mar 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-03-24 20:25:57
Closed_By bembelimen
Labels Added: ? ?
avatar bembelimen bembelimen - close - 24 Mar 2022
avatar bembelimen bembelimen - merge - 24 Mar 2022
avatar bembelimen
bembelimen - comment - 24 Mar 2022

Thx

Add a Comment

Login with GitHub to post a comment