Currently when calling trans or transchoice and passing a domain argument set to null, it emits a warnings during the extraction.
Can only extract the translation domain from a scalar string, but got "PhpParser\Node\Expr\ConstFetch". Please refactor your code to make it extractable, or add the doc comment /** @Ignore */ to this code element (in xxx.php on line xx).
With this PR, it will instead fallback to the default domain messages.
Description
Currently when calling
trans
ortranschoice
and passing a domain argument set to null, it emits a warnings during the extraction.With this PR, it will instead fallback to the default domain
messages
.