From 34404b4e589576f219ad3ebd64abe292dbbad258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 17 Aug 2024 15:59:14 +0200 Subject: [PATCH] fix phpstan (#30660) * fix phpstan * Update reddithandler.class.php --- htdocs/core/class/reddithandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/reddithandler.class.php b/htdocs/core/class/reddithandler.class.php index eb3433a9e5c..a843b1873e3 100644 --- a/htdocs/core/class/reddithandler.class.php +++ b/htdocs/core/class/reddithandler.class.php @@ -84,7 +84,7 @@ class RedditHandler $this->clientSecret = $authParams['client_secret'] ?? ''; $this->username = $authParams['username'] ?? ''; $this->password = $authParams['password'] ?? ''; - $this->userAgent = $authParams['name_app'].'/0.1 by '.$authParams['username'] ?? ''; + $this->userAgent = ($authParams['name_app'] ?? '').'/0.1 by '.($authParams['username'] ?? ''); } /**