Hey guys! I was just wondering if there's any PSR standard regarding PHP arrow functions. In the PHP doc, the RFC and some articles they use the functionality as follows: fn() => 'value', but I haven't found anything PSR related that states a "SHOULD" or "MUST" usage.
I'm surprised that everything I see is fn() with no space between fn and the parentheses when PSR-12 states that (long form) closures should be written function () with a space between function and the parentheses.
Thanks for your input! I found fn ($invoice) => $invoice->submit()here in the Laravel doc, so I will consider that as the way to go moving forward, since I'm working in Laravel projects, except if a robust standard is implemented in the future.