prettier / plugin-php

Prettier PHP Plugin
https://loilo.github.io/prettier-php-playground/
MIT License
1.75k stars 130 forks source link

feat: make format compatible with "PER Coding Style 2.0" #2269

Closed ferchoz closed 10 months ago

ferchoz commented 1 year ago

This change allows to use this plugin along with "PER Coding Style 2.0" formating : readonly final class ClassName {} to final readonly class ClassName {}

doc: https://www.php-fig.org/per/coding-style/#46-modifier-keywords

ferchoz commented 1 year ago

Hi @czosel can you take a look a this PR? Thanks!

PedroTroller commented 1 year ago

I want to make this change, I look at the PRs and I realise that I'm 5 days late... Thanks @ferchoz ;) You can probably rename your PR to specify that it's not just to make it compatible with php-cs-fixer but above all with the php-fig.org PER Coding Style 2.0.

ferchoz commented 11 months ago

Hi @ferchoz, thanks for contributing and sorry about the delay! The idea looks good to me, just a minor point for completeness.

Improved!

ferchoz commented 11 months ago

@czosel can you take a look at it? thanks!!

czosel commented 10 months ago

Released in v0.22.0 :tada: