Skip to content

new operator precedence #1177

@czosel

Description

@czosel

This came up here: prettier/plugin-php#2453 (comment)

new Foo::$bar->baz();

should give the same AST as

new (Foo::$bar->baz)();

but currently doesn't. Instead, it results in the same AST as

new Foo::$bar()->baz();

which is semantically different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions