Skip to content

[4.x] Deprecated: trim(): Passing null when call Path::clean - PHP 8.1 #38510

@sonvnn

Description

@sonvnn

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)

  • Joomla 4.x
  • PHP 8.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions