Steps to reproduce the issue
When call function Path::clean(''); with empty $path on PHP 8.1
System will raise warning
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /{root}/libraries/src/Filesystem/Path.php on line 198
System information (as much as possible)