I’m a big fan of array functions, been using them almost daily since the 7.4 era. Formatting them is a bit iffy though, specially when using fn ($args) => short syntax, sometimes it gets too long for just one line, but putting one argument per line might look awkward, sometimes the callback doesn’t fit in a properly manner, etc.
I was looking through the PSR12 and there’s no mention on array functions. Are there any code styling guides for these bad boys? How do you usually place them on your code?
submitted by /u/nukeaccounteveryweek
[link] [comments]
More Stories
Will County, Illinois 1864 Map – May 20, 2023 at 04:14AM
This kid on Google Map trying to get by – April 27, 2023 at 05:05PM
World of Hyatt: Complete list of all-inclusive properties in Europe (with map) – April 27, 2023 at 04:57PM