Skip to content

IndentTernaryConditions affects nullable type declarations in multiline function/method parameters #171

@metanomial

Description

@metanomial

e.g.,

IndentTernaryConditions disabled:

function multiline_parameters(
    string $first,
    ?string $second,
    int $third,
): ?string {
    return $first == $second
    ? $third
    : null;
}

IndentTernaryConditions enabled:

function multiline_parameters(
    string $first,
        ?string $second,
    int $third,
): ?string {
    return $first == $second
        ? $third
        : null;
}

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