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