Skip to content

Teach to understand complex expressions. #10673

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

You must be logged in to vote

This is exactly the use case described here: https://phpstan.org/blog/generics-by-examples#couple-relevant-classes-together

You need to couple RequestObj and ResponseObj together using generics.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sidz
Comment options

You must be logged in to vote
0 replies
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