Skip to content

Question about settings #7964

Closed Answered by Wirone
PiousVenom asked this question in Q&A
Apr 22, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You should provide proper internal types to the class that you iterate over, so type of the $order is inferred automatically, and known to IDE and PHPStan. It probably requires some generics and other stuff. In general, the @var Order $order should not be needed there. It's more about your code's architecture than Fixer config.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@keradus
Comment options

Answer selected by Wirone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants