Xdiff : PHP8.2 Deprecated : trim must not receive a null parameter
This commit is contained in:
@@ -467,7 +467,7 @@ class Xdiff
|
|||||||
if (! is_string($side2)) {
|
if (! is_string($side2)) {
|
||||||
throw new \Exception("XDiff : side2 parameter not a string");
|
throw new \Exception("XDiff : side2 parameter not a string");
|
||||||
}
|
}
|
||||||
if (trim($symbol) === "") {
|
if ($symbol !== null && trim($symbol) === "") {
|
||||||
$symbol = null;
|
$symbol = null;
|
||||||
}
|
}
|
||||||
$side1 = mb_substr(rtrim($side1), 0, $this->s2sWidth - 1);
|
$side1 = mb_substr(rtrim($side1), 0, $this->s2sWidth - 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user