Skip to content

Can braces_position fixer be implemented?  #691

@ond-danny

Description

@ond-danny
Q A
Bug report? unsure
Feature request? yes
Library version 2.11.0

We are having issues aligning out phpinsights config to match our existing pint(1.16.2) config, which is based on the laravel preset.

The laravel config defines braces_position as braces is depreciated, and is configured to allow single line empty bodys, although this is contrary to PSR-12. (Opening brace must be on a new line).

No matter how I configure phpinsights it insists on producing code that fails the linter, despite the linter being the same CS-Fixer based.

Is it possible to get a new BracePositionFixer that reflects the current CSFixer ruleset?

Does anyone have any advise on how to get phpinsights to play well with pint in default config?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions