Skip to content

Trying to implement generics for a query bus 2: Electric Boogaloo #10542

Closed Answered by ondrejmirtes
devnix asked this question in Support
Discussion options

You must be logged in to vote

Try this: https://phpstan.org/r/2a5b6e43-f19a-4acd-a16a-556d64c038e5

It uses kind of obscure template-type pseudotype discussed here: #9053

If you wanted to do it without it, you'd have to do: https://phpstan.org/r/46d2cbd4-5c36-4807-8660-bd242e3dbf0c

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@devnix
Comment options

@ondrejmirtes
Comment options

Answer selected by devnix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants