Closed JanMikes closed 7 years ago
I was thinking, what should be the result, when trying something like this:
$translator->translate("//messages.someMessage", NULL, [], "something");
Should the result be same as {_messages.something.someMessage}?
{_messages.something.someMessage}
Imho throwing exception could be solution as well, what do you think @fprochazka ?
Throwing and exception seems reasonable.
This might be a BC Break, but IMHO better to break it than having undefined behaviour. It can be always defined later :)
@Lexinek thank you for reporting this!
I was thinking, what should be the result, when trying something like this:
Should the result be same as
{_messages.something.someMessage}
?Imho throwing exception could be solution as well, what do you think @fprochazka ?