Replies: 1 comment 3 replies
-
Hi @innocenzi, If I'm not mistaken it is not allowed to use a static method in a constant expression like you're proposing here. My IDE provides me with a lot of red lines if I try something like this 😄 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
Right now it's possible to cast a collection of data objects with the following syntax:
Would you be open to a PR implementing something along the lines of
CancellationTermData::castTo(DataCollection::class)
?Asking before PRing in order to get ideas on the syntax. I'd like a static method of some sort because the colon concatenation is not a nice syntax.
Beta Was this translation helpful? Give feedback.
All reactions