Skip to content

line_break_between_method_arguments fails when an argument is commented out #214

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

Open
AlexeyKosov opened this issue Aug 7, 2024 · 0 comments

Comments

@AlexeyKosov
Copy link

Config:

        'PedroTroller/line_break_between_method_arguments' => [
            'max-args' => 4,
            'max-length' => 120,
            'automatic-argument-merge' => false,
            'inline-attributes' => false,
        ],

Before:

    public function __construct(
        protected string $arg1,
        // protected string $arg2,
        protected string $arg3,
        protected string $arg4,
    ) {
    }

After a fix:

    public function __construct(
        protected string $arg1,
        // protected string $arg2,protected string $arg3,
        protected string $arg4,
    ) {
    }

Now the $arg3 is gone.

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