diff --git a/psalm.xml b/psalm.xml index 26f04e051..c4a169b7e 100644 --- a/psalm.xml +++ b/psalm.xml @@ -8,7 +8,7 @@ errorBaseline="tests/psalm-baseline.xml" findUnusedBaselineEntry="true" findUnusedCode="false" - phpVersion="8.1" + phpVersion="8.2" > diff --git a/src/components/card/CommentForm.vue b/src/components/card/CommentForm.vue index 5b6837b9e..8f73a721d 100644 --- a/src/components/card/CommentForm.vue +++ b/src/components/card/CommentForm.vue @@ -125,7 +125,7 @@ export default { if (mention.attributes['data-at-embedded'].value === 'true') { mentionValue = mention.parentNode.parentNode.querySelector('.user-bubble__wrapper').attributes['data-mention-id'].value } else { - mentionValue = mention.firstElementChild.attributes['data-mention-id'].value + mentionValue = mention.firstChild.attributes['data-mention-id'].value } if (mentionValue.indexOf(' ') !== -1) { mention.replaceWith(' @"' + mentionValue + '" ')