Parcourir la source

Don't call basename on null

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v18.0.0beta1
Joas Schilling il y a 4 ans
Parent
révision
0f3de7828e
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      apps/workflowengine/lib/Check/FileName.php

+ 1
- 1
apps/workflowengine/lib/Check/FileName.php Voir le fichier

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

/**

Chargement…
Annuler
Enregistrer