Hygiene: use null-coalescing operator when operating on tags
Change-Id: I7d5b4e05ee6c010b4f9438bc4871a3369b1871a6
This commit is contained in:
parent
32d5563ca5
commit
037c06e886
1 changed files with 1 additions and 5 deletions
|
|
@ -776,11 +776,7 @@ class ManualLogEntry extends LogEntryBase {
|
|||
|
||||
if ( $to === 'rc' || $to === 'rcandudp' ) {
|
||||
// save RC, passing tags so they are applied there
|
||||
$tags = $this->getTags();
|
||||
if ( is_null( $tags ) ) {
|
||||
$tags = [];
|
||||
}
|
||||
$rc->addTags( $tags );
|
||||
$rc->addTags( $this->getTags() ?? [] );
|
||||
$rc->save( $rc::SEND_NONE );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue