For configuration or updating questions please read the README and UPGRADE documentation,
or visit: https://gitter.im/PHP-CS-Fixer
When reporting an issue (bug) please provide the following information:
$ php -v):=> 7.4
$ php-cs-fixer -V):=> 2.16.3
=> ./vendor/bin/php-cs-fixer fix
<?php
class Example
{
public const FOO = 1;
public static $bar = [1, 2, 3];
private bool $baz = false;
private $qux = [];
private float $quux = 5.0;
}
<?php
class Example
{
public const FOO = 1;
public static $bar = [1, 2, 3];
private bool $baz = false;
private $qux = [];
private float $quux = 5.0;
}
<?php
class Example
{
public const FOO = 1;
public static $bar = [1, 2, 3];
private bool $baz = false;
private $qux = [];
private float $quux = 5.0;
}
According to PSR-12 it shouldn't be spaces between each property. Isn't? :smile:
Best,
PHP CS Fixer doesn't have a PSR-12 ruleset yet (see #4502) but on v2.17, class_attributes_separation will allow what you want (#4875). Closing as there is nothing left to do here.
Most helpful comment
PHP CS Fixer doesn't have a PSR-12 ruleset yet (see #4502) but on v2.17,
class_attributes_separationwill allow what you want (#4875). Closing as there is nothing left to do here.