User tests: Successful: Unsuccessful:
When editing a plugin a deprecated warning is displayed on PHP 8.1.
In the back end open a plugin form.
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
No warning.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
PHP 8.x
|
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?
I have tested this item
I have successfully tested the PR independently of the discussion.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
rtc
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:
?
?
|
Thx
how is the stack trace? null is never an valid language string right and should be fixed at the source.