Skip to content

Commit 4e3a780

Browse files
committed
[Translation][Xliff loader] fixed check target node.
1 parent 494665c commit 4e3a780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loader/XliffFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function load($resource, $locale, $domain = 'messages')
6363
if ($notes = $this->parseNotesMetadata($translation->note, $encoding)) {
6464
$metadata['notes'] = $notes;
6565
}
66-
if ($translation->target->attributes()) {
66+
if (isset($translation->target) && $translation->target->attributes()) {
6767
$metadata['target-attributes'] = $translation->target->attributes();
6868
}
6969

0 commit comments

Comments
 (0)