Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

[TASK] Add missing ViewHelper argument data type notation "bool" #16

Merged
merged 1 commit into from
May 7, 2024
Merged

[TASK] Add missing ViewHelper argument data type notation "bool" #16

merged 1 commit into from
May 7, 2024

Conversation

ErHaWeb
Copy link
Contributor

@ErHaWeb ErHaWeb commented Mar 7, 2024

According to TYPO3Fluid\Fluid\Core\Parser\TemplateParser, in addition to the data type boolean, bool is also treated as a boolean value. To prevent the ViewHelper documentation from outputting the data type mixed if the string bool was specified as a data type in the ViewHelper, it is necessary to adapt the XSD generation accordingly.

According to `TYPO3Fluid\Fluid\Core\Parser\TemplateParser`, in addition to the data type `boolean`, `bool` is also treated as a boolean value. To prevent the ViewHelper documentation from outputting the data type `mixed` if the string `bool` was specified as a data type in the ViewHelper, it is necessary to adapt the XSD generation accordingly.
@ErHaWeb
Copy link
Contributor Author

ErHaWeb commented Mar 7, 2024

Related discussion: TYPO3-Documentation/TYPO3CMS-Reference-ViewHelper#79

@s2b
Copy link
Contributor

s2b commented May 7, 2024

Looks reasonable to me. I'm a bit puzzled why booleans are handled differently in AbstractViewHelper, but that doesn't affect this PR.

@s2b s2b merged commit 955ef88 into TYPO3:main May 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants