Skip to content

Support for Context Sensitive Lexer #75

@promatik

Description

@promatik

With a function like;

public function else($value)
{
    return $this->fallbackLogic($value);
}

phpfmt is braking the code to;

function else{
    ($value) {
        return $this->fallbackLogic($value);
    }

Since PHP 7.0 the Context Sensitive Lexer allows to use reserved words for function names for instance.

RFC here: https://wiki.php.net/rfc/context_sensitive_lexer

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