Closed Chris53897 closed 5 months ago
This might be much more work than you anticipated, because the static analyzers might have quite something to complain.
That things with that comma added to every argument list, can you disable that? Personally, I do not see why we want that. I makes this PR really hard to check also.
The rules need to be changed here. But i am not which one to add here. https://github.com/moneyphp/money/blob/master/phpcs.xml.dist
I am not yet sure what exactly does cause the changes for PHPCSFixer to find, all the new violations. https://github.com/moneyphp/money/actions/runs/7665540242/job/20891619569
It is caused by the upgrade of doctrine/coding-standard. To be honest, I have no idea either which config it is. I looked up the docs but I am not sure actually.
Can you try to exclude SlevomatCodingStandard.Functions.RequireTrailingCommaInCall
and SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse
?
I think splitting it up to seperate PR's make it easier. Maybe you can have a look at the other two PR's from me. After that is merged, https://github.com/moneyphp/money/pull/746 could be rebased against master. And hopefully finalised, and merged.
After that is done a new PR for the coding standards could be done. WDYT ?
Ok. Let's do the coding standards upgrade here then.
Superseded by #785
Related to https://github.com/moneyphp/iso-currencies/pull/15