Skip to content

Detection of Method Calls on Variables Created by Other Prior Method Calls #4446

Discussion options

You must be logged in to vote

Hi, you need to express this somehow using types. That way the built-in type inference in PHPStan will pick it up and you'll be able to track that across calls. The best way would be the Request::all() method to have some specific @return PHPDoc tag. Maybe generics would also help?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@paras-malhotra
Comment options

@ondrejmirtes
Comment options

@paras-malhotra
Comment options

Answer selected by paras-malhotra
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