From f59335d85aa7a2c87308c47fe35226bd50cd4fec Mon Sep 17 00:00:00 2001 From: thiemowmde Date: Wed, 20 Nov 2024 08:13:29 +0100 Subject: [PATCH] Make use of the modern ??= operator in one more place Change-Id: I57c56547893536cd1ca4de567158eccdfff508f9 --- includes/CommentParser.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/CommentParser.php b/includes/CommentParser.php index 7da5a9b7f..f665e3fe4 100644 --- a/includes/CommentParser.php +++ b/includes/CommentParser.php @@ -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'] ) {