From: Matthias Schmidt Date: Fri, 30 Apr 2021 06:00:22 +0000 (+0200) Subject: Use null coalescing operator wherever possible X-Git-Tag: 5.4.0_Alpha_1~24 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=01d199ff5d69fa1497b40f77db3a53b6f9ce91fa;p=GitHub%2FWoltLab%2FWCF.git Use null coalescing operator wherever possible --- diff --git a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php index 79ed95dcfe..39277584bc 100644 --- a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php +++ b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php @@ -88,11 +88,8 @@ class ApplicationHandler extends SingletonFactory if ($packageID == 1 && !isset($this->cache['application'][1])) { $this->cache['application'][1] = new Application(1); } - if (isset($this->cache['application'][$packageID])) { - return $this->cache['application'][$packageID]; - } - return null; + return $this->cache['application'][$packageID] ?? null; } /**