Loading src/UnicaenParametre/View/Helper/ParametreValueViewHelper.php +4 −2 Original line number Diff line number Diff line Loading @@ -9,8 +9,10 @@ class ParametreValueViewHelper extends AbstractHelper { use ParametreServiceAwareTrait; public function __invoke(string $categorieCode, string $parametreCode, array $options = []) : string public function __invoke(string $categorieCode, string $parametreCode, array $options = []) : ?string { return "".$this->getParametreService()->getValeurForParametre($categorieCode, $parametreCode); $value = $this->getParametreService()->getValeurForParametre($categorieCode, $parametreCode); if ($value === null) return null; return "".$value; } } No newline at end of file Loading
src/UnicaenParametre/View/Helper/ParametreValueViewHelper.php +4 −2 Original line number Diff line number Diff line Loading @@ -9,8 +9,10 @@ class ParametreValueViewHelper extends AbstractHelper { use ParametreServiceAwareTrait; public function __invoke(string $categorieCode, string $parametreCode, array $options = []) : string public function __invoke(string $categorieCode, string $parametreCode, array $options = []) : ?string { return "".$this->getParametreService()->getValeurForParametre($categorieCode, $parametreCode); $value = $this->getParametreService()->getValeurForParametre($categorieCode, $parametreCode); if ($value === null) return null; return "".$value; } } No newline at end of file