mesour-intellij-plugins / neon-nette-issues

2 stars 0 forks source link

False positive syntax error when using functions via ::function #47

Closed lulco closed 11 months ago

lulco commented 1 year ago

Describe the bug We're using function calls in services setup. Plugin marks it as wrong syntax and everything after this place is not working (I can't click to classes, got no suggestions etc.)

Environment (please complete the following information):

Code to Reproduce Add function call to neon:

services:
    -
        factory: Foo\Bar\Baz
        arguments:
            qwerty: ::md5(%someParameter%)

or

services:
    - Foo\Bar\Baz(::md5(%someParameter%))

Screenshots

image

Additional context

Error message I got: ", , , , , , , , '[Neon] T_COMMENT', '[Neon] T_INDENT', '[Neon] T_PARAMETER_LEFT' or '[Neon] T_STATIC_IDENTIFIER' expected, got 'md5'"

Real project example: https://github.com/efabrica-team/phpstan-latte/blob/main/extension.neon#L94

mesour commented 11 months ago

Implemented in 1.1.0