Make use of the modern ??= operator in one more place

Change-Id: I57c56547893536cd1ca4de567158eccdfff508f9
This commit is contained in:
thiemowmde 2024-11-20 08:13:29 +01:00
parent 7acd730719
commit f59335d85a

View file

@ -675,9 +675,7 @@ class CommentParser {
$user = $this->getUsernameFromLink( $node );
if ( $user ) {
// Accept the first link to the user namespace, then only accept links to that user
if ( $sigUsername === null ) {
$sigUsername = $user['username'];
}
$sigUsername ??= $user['username'];
if ( $user['username'] === $sigUsername ) {
$lastLinkNode = $node;
if ( $user['displayName'] ) {