Merge pull request #17444 from nextcloud/backport/17359/stable17
[stable17] Don't call basename on null
This commit is contained in:
commit
0e2a403a21
|
@ -59,7 +59,7 @@ class FileName extends AbstractStringCheck {
|
|||
* @return string
|
||||
*/
|
||||
protected function getActualValue(): string {
|
||||
return basename($this->path);
|
||||
return $this->path === null ? '' : basename($this->path);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue