Special chars within single quotes
Opened this issue · 2 comments
hurry-man commented
class: Nette\Mail\SmtpMailer([
...
'password' => '}'
...
])
Seems that char }
is not allowed. It says "unexpected token [Neon] }, expected [Neon] ]".
However, according to Neon sandbox it is possible.
hurry-man commented
It seems that Nette itself evaluates the above expression as wrong. So the Neon sandbox is to blame, because it evaluates it as a valid expression. Please close this issue. Thanks.
hurry-man commented
Well, it is my bad. The correct syntax is using :
instead of =>
like this:
class: Nette\Mail\SmtpMailer([
...
'password' => '}' # error
password: '}' # correct
...
])
Then everything works as expected (neon sandbox, nette itself, and neon plugin in phpstorm).