Skip to content

Commit 64ac8c8

Browse files
authored
[5.2] PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated (#44876)
1 parent f716005 commit 64ac8c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/src/Table/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function check()
172172
return false;
173173
}
174174

175-
$this->alias = trim($this->alias);
175+
$this->alias = trim($this->alias ?? '');
176176

177177
if (empty($this->alias)) {
178178
$this->alias = $this->title;

0 commit comments

Comments
 (0)