From: Tim Düsterhus Date: Wed, 10 Aug 2022 13:39:23 +0000 (+0200) Subject: Use typed property for AbstractOauth2Action::$httpClient X-Git-Tag: 6.0.0_Alpha_1~1043^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=70651adf55cfa0eaf83a3f8e56ad29b9ad12be26;p=GitHub%2FWoltLab%2FWCF.git Use typed property for AbstractOauth2Action::$httpClient --- diff --git a/wcfsetup/install/files/lib/action/AbstractOauth2Action.class.php b/wcfsetup/install/files/lib/action/AbstractOauth2Action.class.php index 427e39b0d4..27baa38271 100644 --- a/wcfsetup/install/files/lib/action/AbstractOauth2Action.class.php +++ b/wcfsetup/install/files/lib/action/AbstractOauth2Action.class.php @@ -32,10 +32,7 @@ abstract class AbstractOauth2Action extends AbstractAction private const PKCE = self::class . "\0pkce"; - /** - * @var ClientInterface - */ - private $httpClient; + private ClientInterface $httpClient; /** * @inheritDoc @@ -55,7 +52,7 @@ abstract class AbstractOauth2Action extends AbstractAction */ protected function getHttpClient(): ClientInterface { - if (!$this->httpClient) { + if (!isset($this->httpClient)) { $this->httpClient = HttpFactory::makeClientWithTimeout(5); }