Skip to content

Conversation

@s2b
Copy link
Contributor

@s2b s2b commented Dec 7, 2025

Due to the way the structure of components is extracted from template
files, it was previously not possible to use a PHP constant or enum
case as default value for a component argument.

This patch adds the <f:constant> ViewHelper to the list of allowed
ViewHelpers for that pre-parsing step, which makes it now possible
to use <f:constant> from within <f:argument>.

Due to the way the structure of components is extracted from template
files, it was previously not possible to use a PHP constant or enum
case as default value for a component argument.

This patch adds the `<f:constant>` ViewHelper to the list of allowed
ViewHelpers for that pre-parsing step, which makes it now possible
to use `<f:constant>` from within `<f:argument>`.
@s2b s2b merged commit fc82fac into main Dec 10, 2025
10 checks passed
@s2b s2b deleted the bugfix/enumArgumentDefault branch December 10, 2025 14:49
s2b added a commit that referenced this pull request Dec 10, 2025
Due to the way the structure of components is extracted from template
files, it was previously not possible to use a PHP constant or enum
case as default value for a component argument.

This patch adds the `<f:constant>` ViewHelper to the list of allowed
ViewHelpers for that pre-parsing step, which makes it now possible
to use `<f:constant>` from within `<f:argument>`.
s2b added a commit that referenced this pull request Dec 10, 2025
…1278)

Due to the way the structure of components is extracted from template
files, it was previously not possible to use a PHP constant or enum
case as default value for a component argument.

This patch adds the `<f:constant>` ViewHelper to the list of allowed
ViewHelpers for that pre-parsing step, which makes it now possible
to use `<f:constant>` from within `<f:argument>`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants