Skip to content

Attributes are being inconsistently set on the same line as the parameter #166

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

Closed
innocenzi opened this issue Mar 22, 2025 · 0 comments
Closed
Assignees
Labels
Priority: High After critical issues are fixed, handle these before any further issues. Status: Closed This issue is closed and no more work is planned. Subject: Formatter An issue or PR related to the formatter. Type: Bug An issue causing unintended or problematic behavior.

Comments

@innocenzi
Copy link
Contributor

Before

#[ConsoleCommand]
public function test(
    #[ConsoleArgument]
    ?int $optionalValue = null,
    #[ConsoleArgument(name: 'custom-flag')]
    bool $flag = false,
): void

After

#[ConsoleCommand]
public function test(
    #[ConsoleArgument] ?int $optionalValue = null,
    #[ConsoleArgument(name: 'custom-flag')]
    bool $flag = false,
): void 

Before

public function __construct(
    #[Eager]
    public BWithEager $b,
) {
}

After

public function __construct(
    #[Eager] public BWithEager $b,
) {
}

[format]
print_width = 180
tab_width = 4
use_tabs = false
null_type_hint = "question"
space_before_arrow_function_parameter_list_parenthesis = true
space_after_logical_not_unary_prefix_operator = true
always_break_named_arguments_list = false
preserve_breaking_member_access_chain = true
preserve_breaking_argument_list = true
preserve_breaking_array_like = true
preserve_breaking_parameter_list = true
preserve_breaking_attribute_list = true
preserve_breaking_conditional_expression = true
@azjezz azjezz self-assigned this Mar 22, 2025
@azjezz azjezz added Priority: High After critical issues are fixed, handle these before any further issues. Status: In Progress This issue is being worked on and has someone assigned. Type: Bug An issue causing unintended or problematic behavior. Subject: Formatter An issue or PR related to the formatter. labels Mar 22, 2025
@azjezz azjezz closed this as completed in 5e38a97 Mar 22, 2025
@azjezz azjezz added Status: Closed This issue is closed and no more work is planned. and removed Status: In Progress This issue is being worked on and has someone assigned. labels Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High After critical issues are fixed, handle these before any further issues. Status: Closed This issue is closed and no more work is planned. Subject: Formatter An issue or PR related to the formatter. Type: Bug An issue causing unintended or problematic behavior.
Projects
None yet
Development

No branches or pull requests

2 participants