plugin-php: Prettier should not touch arrays style.
Like we said in https://github.com/prettier/plugin-php/issues/476 prettier should not change the way arrays are written.
- Hotel::findOrFail($hotelId)->update(['payment_account_id' => $stripeAccount->getId()]);
+ Hotel::findOrFail($hotelId)->update([
+ 'payment_account_id' => $stripeAccount->getId(),
+ ]);
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (7 by maintainers)
@czosel Thanks! Don’t you think that we could do the same for standard (only values) array in php? Example of why it could be cool: https://github.com/prettier/plugin-php/issues/606#issuecomment-420364942
Thanks for your amazing work anyway folks!
I can confirm that linebreaks in associative arrays are preseved on
master
(as long as they fit on one line): InputOutput