Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

allow method calls in expressions without parenthesis and is/has #60336

Copy link
Copy link
Open
@tacman

Description

@tacman
Issue body actions

Description

Like twig, I'd like to be able to call methods in expressions without the parenthesis.

Example

public function isValid() {
   return $this->httpStatusCode == 200;
}

In the expression, e.g. for workflow

 guard: 'subject.isValid()'

I'd like to be able to call it without the parenthsis.

And like Twig, it'd be great to not need the is or has prefix,

 guard: 'subject.valid'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.