phpstan-doctrine icon indicating copy to clipboard operation
phpstan-doctrine copied to clipboard

phpcs: Disallow trailing commas in function calls, declarations, use list

Open arnaud-lb opened this issue 2 years ago • 0 comments

I'm always getting trailing comma errors when submitting PRs on phpstan-doctrine because of the PHP 7.2 support.

It would help a lot if make cs would detect these problems.

This PR adds 3 rules to phpcs to do exactly this.

Ideally make lint would detect these problems instead, but making it run with PHP 7.2 on everyone's machine is much more involved.

arnaud-lb avatar Jul 06 '22 20:07 arnaud-lb