Sfoglia il codice sorgente

Don't call basename on null

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v18.0.0beta1
Joas Schilling 4 anni fa
parent
commit
0f3de7828e
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      apps/workflowengine/lib/Check/FileName.php

+ 1
- 1
apps/workflowengine/lib/Check/FileName.php Vedi 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…
Annulla
Salva