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 */