We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d465379 + ec1a0ac commit 2a51f8aCopy full SHA for 2a51f8a
Translation/Extractor/File/TwigFileExtractor.php
@@ -73,9 +73,9 @@ public function enterNode(Node $node, Environment $env): Node
73
if ($node instanceof TransNode) {
74
$id = $node->getNode('body')->getAttribute('data');
75
$domain = 'messages';
76
- // Older version of Symfony are storing null in the node instead of omitting it
77
- if ($node->hasNode('domain') && null !== $domainNode = $node->getNode('domain')) {
78
- $domain = $domainNode->getAttribute('value');
+
+ if ($node->hasNode('domain')) {
+ $domain = $node->getNode('domain')->getAttribute('value');
79
}
80
81
$message = new Message($id, $domain);
0 commit comments