From 70651adf55cfa0eaf83a3f8e56ad29b9ad12be26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 10 Aug 2022 15:39:23 +0200 Subject: [PATCH] Use typed property for AbstractOauth2Action::$httpClient --- .../files/lib/action/AbstractOauth2Action.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); } -- 2.20.1