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

This commit is contained in:
jenkins-bot 2024-11-20 20:19:15 +00:00 committed by Gerrit Code Review
commit c049828dce

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'] ) {