Skip to content

String offset operator not recognized properly #34

@davisjr

Description

@davisjr

The string offset operator is not properly recognized. For eg, in the following code:

private function status_is_error($status)
{
    $status_class = $status{0};
    $error = ($status_class == "4" || $status_class == "5");
    return $error;
}

The sugar thinks the function body ends at the "}" in "$status{0}". Selecting the function in navigator, selects only up to this point. It affects the following methods in the class as well.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions