Skip to content

v0.10.0 - promoted constructors styling

Compare
Choose a tag to compare
@krzysztofrewak krzysztofrewak released this 23 Feb 07:32
· 44 commits to main since this release
39da9ec

We are intentionally breaking PSR rule, but we believe it will be fixed in some PSR update:

Before:

class Foo {
    public function __construct(
        $param1,
        $param2
    ) {
    }
}

After:

class Foo {
    public function __construct(
        $param1,
        $param2,
    ) {}
}

Also, these were added as default:

PhpCsFixerCustomFixers\Fixer\ConstructorEmptyBracesFixer;
PhpCsFixerCustomFixers\Fixer\MultilinePromotedPropertiesFixer;
PhpCsFixerCustomFixers\Fixer\NoUselessCommentFixer;
PhpCsFixerCustomFixers\Fixer\PhpdocArrayStyleFixer;
PhpCsFixerCustomFixers\Fixer\PromotedConstructorPropertyFixer;
PhpCsFixerCustomFixers\Fixer\SingleSpaceAfterStatementFixer;
PhpCsFixerCustomFixers\Fixer\SingleSpaceBeforeStatementFixer;
PhpCsFixerCustomFixers\Fixer\StringableInterfaceFixer;