-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Concatenate static parameter with string ends with exception #288
Comments
|
OK it is a feature, not a bug, so let close this issue. I have found easily alternative solution, I put this issue because of make clear weather the documentation should be changed or the code. I think, some relevant notice about neon entities/(Statements versus strings in documentation would be useful. My opinion is that the documentation part about neon entities syntax is incomplete and not enough clear - this case and some other. I am intending to prepare PR in neon documentation with better explanation of important things. But I need some more time for this. I will put PR directly into nette/docs and in case I need some expert assistance I will ask on forum. |
nette/di v 3.1.2
Bug Description
I have set static parameter in neon configuration file with call method of service. Using this parameter concatenated with another literal string throws Nette\InvalidArgumentException.
Steps To Reproduce
Just copy this code and use Test2 in presenter, Nette\InvalidArgumentException is thrown:
Unable to concatenate non-scalar parameter 'param' into '%param%cd'.
Expected Behavior
Im not sure wheather this is a real bug, or a specific feature, but the behaviour differs from documentation, where are code samples showing concatenation static parameters with strings like %param%abc
Possible Solution
a) best solution make concatenation possible, because this would be useful
b) if not possible a), just let me know and I would prepare PR to describe this feature in documentation.
The text was updated successfully, but these errors were encountered: