Merge pull request #17444 from nextcloud/backport/17359/stable17

[stable17] Don't call basename on null
This commit is contained in:
Roeland Jago Douma 2019-10-08 08:07:06 +02:00 committed by GitHub
commit 0e2a403a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**