Merge pull request #17441 from nextcloud/backport/17359/stable16

[stable16] Don't call basename on null
This commit is contained in:
blizzz 2019-10-07 16:46:13 +02:00 committed by GitHub
commit 45108fcb40
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 * @return string
*/ */
protected function getActualValue(): string { protected function getActualValue(): string {
return basename($this->path); return $this->path === null ? '' : basename($this->path);
} }
/** /**