Skip to content

Commit ce417f3

Browse files
nickvergessenBackportbot
authored andcommitted
Don't call basename on null
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 197d533 commit ce417f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/workflowengine/lib/Check/FileName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function setFileInfo(IStorage $storage, $path) {
5959
* @return string
6060
*/
6161
protected function getActualValue(): string {
62-
return basename($this->path);
62+
return $this->path === null ? '' : basename($this->path);
6363
}
6464

6565
/**

0 commit comments

Comments
 (0)