- Issue created by @solideogloria
- Status changed to Closed: won't fix
about 1 year ago 9:01am 16 June 2023 - π¦πΉAustria klausi π¦πΉ Vienna
Thanks for reporting!
It is important for automatic translation extraction tools that string literals are used. We are having a discussion in β¨ REVERTED: Allow passing constants to t() translate function to prevent 'Only string literals should be passed to t() where possible' CS warning Fixed about a potential revert because even using constants might not be a good idea.
For private projects I would recommend to disable this sniff or ignore that error explicitly if you don't care about translation extraction.
If the potx extraction tools support nowdoc/heredoc please let me know and we can reopen this.