Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in nestet function with few arguments #1011

Open
iivanov opened this issue Dec 10, 2019 · 0 comments
Open

Problem in nestet function with few arguments #1011

iivanov opened this issue Dec 10, 2019 · 0 comments

Comments

@iivanov
Copy link

iivanov commented Dec 10, 2019

I created the following fixture: created: '<strval(<dateTimeBetween("-1 days", "now")>)>' and got an error:

The value "\<dateTimeBetween(__ARG_TOKEN__ab6e5fc745de24f87a45df883b03c187" contains an unclosed function.

I think the problem is in vendor/nelmio/alice/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FunctionTokenParser.php
when we parce strval function I catch arguments:
<dateTimeBetween(__ARG_TOKEN__ab6e5fc745de24f87a45df883b03c187
and __ARG_TOKEN__97bc592b27a9ada2d9a4bb418ed0ebed)>

I think the reason is parseArguments method doesn't expect that divider can be used for the arguments of included function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants