From: Matthias Schmidt Date: Fri, 30 Apr 2021 05:54:33 +0000 (+0200) Subject: Use null coalescing operator wherever possible X-Git-Tag: 5.4.0_Alpha_1~2 X-Git-Url: https://git.stricted.de/?p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git;a=commitdiff_plain;h=10c7b4240aa522afd41d91dcba63edc4de827818 Use null coalescing operator wherever possible --- diff --git a/files/lib/system/search/ConversationMessageSearch.class.php b/files/lib/system/search/ConversationMessageSearch.class.php index 735f9d3..f8bcaef 100644 --- a/files/lib/system/search/ConversationMessageSearch.class.php +++ b/files/lib/system/search/ConversationMessageSearch.class.php @@ -66,11 +66,7 @@ class ConversationMessageSearch extends AbstractSearchableObjectType */ public function getObject($objectID) { - if (isset($this->messageCache[$objectID])) { - return $this->messageCache[$objectID]; - } - - return null; + return $this->messageCache[$objectID] ?? null; } /**