Hygiene: use null-coalescing operator when operating on tags

Change-Id: I7d5b4e05ee6c010b4f9438bc4871a3369b1871a6
This commit is contained in:
Piotr Miazga 2019-03-01 19:13:28 +01:00
parent 32d5563ca5
commit 037c06e886

View file

@ -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 );
}