PSR-12 foreach multiline not defined

22 views
Skip to first unread message

Julian Wittorf

unread,
Feb 24, 2023, 6:17:40 AMFeb 24
to PHP Framework Interoperability Group
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.

Since the general style rules for 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?
Reply all
Reply to author
Forward
0 new messages