Skip to content

Commit

Permalink
invalid setter on immutables
Browse files Browse the repository at this point in the history
  • Loading branch information
Joris Vaesen committed Apr 18, 2024
1 parent 7453e6d commit bd8a2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/Dto/element/methods.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% else %}
{{ element('method_set', field) }}
{% endif %}
{% if field.nullable %}
{% if field.nullable and not immutable %}
{{ element('method_set_or_fail', field) }}
{% endif %}
{{ element('method_get', field) }}
Expand Down

0 comments on commit bd8a2d5

Please sign in to comment.