Explorar el Código

Don't call basename on null

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v18.0.0beta1
Joas Schilling hace 4 años
padre
commit
0f3de7828e
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      apps/workflowengine/lib/Check/FileName.php

+ 1
- 1
apps/workflowengine/lib/Check/FileName.php Ver fichero

@@ -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);
}

/**

Cargando…
Cancelar
Guardar