pretty-php icon indicating copy to clipboard operation
pretty-php copied to clipboard

Details differ between `symfony` preset and PHP Coding Standards Fixer

Open dbohdan opened this issue 1 year ago • 0 comments

I have compared --preset symfony with PHP CS Fixer and found two minor differences. I thought you may be interested.

Original

<?php declare(strict_types=1);

final class Foo {
    public static function bar() { }
}

pretty-php v0.4.66-d7e66927

<?php declare(strict_types=1);

final class Foo
{
    public static function bar() {}
}

PHP CS Fixer 3.62.0 (1ce9e24)

<?php

declare(strict_types=1);

final class Foo
{
    public static function bar()
    {
    }
}

dbohdan avatar Aug 11 '24 15:08 dbohdan