Browse Source

Don't call basename on null

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v18.0.0beta1
Joas Schilling 4 years ago
parent
commit
0f3de7828e
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/workflowengine/lib/Check/FileName.php

+ 1
- 1
apps/workflowengine/lib/Check/FileName.php View File

@@ -46,7 +46,7 @@ class FileName extends AbstractStringCheck implements IFileCheck {
* @return string
*/
protected function getActualValue(): string {
return basename($this->path);
return $this->path === null ? '' : basename($this->path);
}

/**

Loading…
Cancel
Save