Skip to content

Commit

Permalink
[3.10] [PHP 8.1] Fix Editor Passing null to $string line 258
Browse files Browse the repository at this point in the history
Fixes `Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/src/Editor/Editor.php on line 258`
  • Loading branch information
beat authored Jan 21, 2022
1 parent b2206b0 commit 1a1f786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Editor/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function initialise()

foreach ($results as $result)
{
if (trim($result))
if (trim((string) $result))
{
// @todo remove code: $return .= $result;
$return = $result;
Expand Down

0 comments on commit 1a1f786

Please sign in to comment.