Skip to content

findEndOfStatement problems #1885

Closed
Closed
@GrahamLab

Description

@GrahamLab

Hi
Given this code

switch ($m[self::META_IDX_FORMAT][0]) {
    case 1: {
        throw new OutOfRangeException();
        break;
    }

    default: {
        // throw new LogicException("Format of '{$f}' is unknown: {$m[self::META_IDX_FORMAT]}");
        throw new OutOfRangeException();
        break;
    }
}

If I issue a findEndOfStatement using the index of the first case statement I get the closing brace of the default branch which seems not to make any sense

Please can someone provide an explanation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions