Skip to content

Conversation

tacman
Copy link
Contributor

@tacman tacman commented Nov 11, 2024

Purely style, but to me it looks funny to set an IntegerType to a string, though of course it works as documented.

enforce the strictness of the type to ensure the constructor

The constructor uses integers in the Color class.

Purely style, but to me it looks funny to set an IntegerType to a string, though of course it works as documented.
@xabbuh
Copy link
Member

xabbuh commented Nov 11, 2024

The empty_data option must have values in the view format (e.g. strings or an array). Integers are not valid as the view data. Data transformers take care of casting the string to an integer on form submission.

@tacman
Copy link
Contributor Author

tacman commented Nov 11, 2024

Thanks for the explanation.

@tacman tacman closed this Nov 11, 2024
@tacman tacman deleted the patch-28 branch November 11, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants