Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No blank lines between properties #19

Closed
JesusValera opened this issue May 24, 2020 · 1 comment
Closed

No blank lines between properties #19

JesusValera opened this issue May 24, 2020 · 1 comment

Comments

@JesusValera
Copy link

Hello, I am using PHP 7.4.

Given the following snippet:

<?php
class Example
{
    public const FOO = 1;
    public static $bar = [1, 2, 3];
    private bool $baz = false;
    private $qux = [];
    private float $quux = 5.0;
}

When I run the fixer it is transformed to:

<?php
class Example
{
    public const FOO = 1;

    public static $bar = [1, 2, 3];

    private bool $baz = false;

    private $qux = [];

    private float $quux = 5.0;
}

But according to PSR-12 it should be like the first example. Isn't? 😄

Best,

@JesusValera
Copy link
Author

Wrong project. :P

PHP-CS-Fixer/PHP-CS-Fixer#4969

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant