Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Clarify that f:constant returns an enum case #1013

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

brotkrueml
Copy link
Contributor

Using

<f:constant name="\Vendor\Package\Enum::CASE">

returns the enum case Enum::CASE, not the value of the given (backed) enum case.

This change clarifies this.

See also:
https://www.php.net/manual/en/function.constant.php#example-3571

Using

    <f:constant name: '\Vendor\Package\Enum::CASE'>

returns the enum case Enum::CASE, not the value of
given (backed) enum case.

This change clarifies this.

See also:
https://www.php.net/manual/en/function.constant.php#example-3571
@s2b s2b merged commit f3bb227 into TYPO3:main Nov 15, 2024
4 checks passed
@brotkrueml brotkrueml deleted the constant-enum branch November 15, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants