Hi, I ran across this issue while comparing different tools like PHP_CodeSniffer and PHP CS Fixer and basically there is no explicit ruling for a foreach-structure with multi-line arguments.
I've added some thoughts and code examples to the already opened issue on GitHub <https://github.com/squizlabs/PHP_CodeSniffer/issues/3047#issuecomment-1440231934> . Since the general style rules for control structures <https://www.php-fig.org/psr/psr-12/#5-control-structures> doesn't say anything about multi-lines, there should be some further input on this topic - either in general or explicitly for the foreach-loop. Any thoughts on this? -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/20dc83cc-8b77-45e6-b39b-58e64d303aa5n%40googlegroups.com.
