We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Version: 3.0.10
After upgrading nette/di from 3.0.9 to 3.0.10, there is an exception thrown when underscore is used as an argument to function or method.
nette/di
Stub class:
<?php declare(strict_types=1); class MyClass { public function __construct(string $something){ // do something } }
NEON config:
services: - MyClass(::implode('_', ['one', 'two']))
The constructor of MyClass will be called with string one_two as a result of implode('_', ['one', 'two']) function call.
MyClass
one_two
implode('_', ['one', 'two'])
This is probably caused by the commit 89893da. I am sorry, but I am not aware of any escape sequence to pass just the underscore as a string argument.
The text was updated successfully, but these errors were encountered:
I will try to find a solution, for now please use the older version.
Sorry, something went wrong.
34cb85a
The _ are removed using Neon visitor [Closes #264]
7d7a710
No branches or pull requests
Version: 3.0.10
Bug Description
After upgrading

nette/di
from 3.0.9 to 3.0.10, there is an exception thrown when underscore is used as an argument to function or method.Steps To Reproduce
Stub class:
NEON config:
Expected Behavior
The constructor of
MyClass
will be called with stringone_two
as a result ofimplode('_', ['one', 'two'])
function call.Possible Solution
This is probably caused by the commit 89893da.
I am sorry, but I am not aware of any escape sequence to pass just the underscore as a string argument.
The text was updated successfully, but these errors were encountered: