Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.10] [PHP 8.1] Fix Editor Passing null to $string line 258 #36777

Merged
merged 2 commits into from
Jan 23, 2022

Conversation

beat
Copy link
Contributor

@beat beat commented Jan 21, 2022

Pull Request for Issue # none, directly fixed here.

Summary of Changes

Fixes Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/src/Editor/Editor.php on line 258

Testing Instructions

Obvious source-code review should be enough.

Otherwise go into admin with PHP 8.1 and debug on, with deprecation warnings turned on.

Actual result BEFORE applying this Pull Request

Displays warning Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/src/Editor/Editor.php on line 258

Expected result AFTER applying this Pull Request

warning disappears.

Documentation Changes Required

None.

Fixes `Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/src/Editor/Editor.php on line 258`
@richard67 richard67 added the PHP 8.x PHP 8.x deprecated issues label Jan 22, 2022
@richard67
Copy link
Member

I have tested this item ✅ successfully on 1a1f786

Code review.


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

@Fedik
Copy link
Member

Fedik commented Jan 22, 2022

I have tested this item ✅ successfully on 1a1f786


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

@Fedik Fedik removed PR-3.10-dev PHP 8.x PHP 8.x deprecated issues labels Jan 22, 2022
@Fedik
Copy link
Member

Fedik commented Jan 22, 2022

R2C


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 22, 2022
@Fedik Fedik added PHP 8.x PHP 8.x deprecated issues PR-3.10-dev labels Jan 22, 2022
@richard67 richard67 added the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Jan 23, 2022
Co-authored-by: Tobias Zulauf <zero-24@users.noreply.github.com>
@beat
Copy link
Contributor Author

beat commented Jan 23, 2022

Test: I tested the proposed change and it fixes the issue same as my orignal fix proposal.

@zero-24 zero-24 added this to the Joomla 3.10.6 milestone Jan 23, 2022
@zero-24
Copy link
Contributor

zero-24 commented Jan 23, 2022

Merging thanks

@zero-24 zero-24 merged commit b90fb91 into joomla:3.10-dev Jan 23, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jan 23, 2022
@Quy Quy removed the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PHP 8.x PHP 8.x deprecated issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants