Trying to implement generics for a query bus 2: Electric Boogaloo #10542
-
I'm trying to tighten up a little bit the example of Query Bus I archived in #7191 in a way that filling the generic of Maybe it's just that the template is not correctly being filled up, honestly I've tried a lot of things but none of them are working 😅 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Try this: https://phpstan.org/r/2a5b6e43-f19a-4acd-a16a-556d64c038e5 It uses kind of obscure If you wanted to do it without it, you'd have to do: https://phpstan.org/r/46d2cbd4-5c36-4807-8660-bd242e3dbf0c |
Beta Was this translation helpful? Give feedback.
Try this: https://phpstan.org/r/2a5b6e43-f19a-4acd-a16a-556d64c038e5
It uses kind of obscure
template-type
pseudotype discussed here: #9053If you wanted to do it without it, you'd have to do: https://phpstan.org/r/46d2cbd4-5c36-4807-8660-bd242e3dbf0c