From ce417f30c4500da5229b6df471d236251e7b209b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 1 Oct 2019 17:30:52 +0200 Subject: [PATCH] Don't call basename on null Signed-off-by: Joas Schilling --- apps/workflowengine/lib/Check/FileName.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/workflowengine/lib/Check/FileName.php b/apps/workflowengine/lib/Check/FileName.php index c6afbf7afad..f775227f71c 100644 --- a/apps/workflowengine/lib/Check/FileName.php +++ b/apps/workflowengine/lib/Check/FileName.php @@ -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); } /** -- 2.39.5