From 612f3861941dd6b3e989a5bb1b9afca626d7ed16 Mon Sep 17 00:00:00 2001 From: mscherer Date: Mon, 18 Nov 2024 14:40:14 +0100 Subject: [PATCH] Fix with*OrFail templates. --- templates/Dto/element/method_with_or_fail.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/Dto/element/method_with_or_fail.twig b/templates/Dto/element/method_with_or_fail.twig index 2f7b6aa..ff9fc7a 100644 --- a/templates/Dto/element/method_with_or_fail.twig +++ b/templates/Dto/element/method_with_or_fail.twig @@ -4,8 +4,10 @@ * {% endif %} * @param {{ type }} ${{ name }} +{% if not typeHint %} * * @throws \RuntimeException If value is not present. +{% endif %} * * @return static */