fix phpstan (#30660)

* fix phpstan

* Update reddithandler.class.php
This commit is contained in:
Frédéric FRANCE 2024-08-17 15:59:14 +02:00 committed by GitHub
parent 84699b64fe
commit 34404b4e58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'] ?? '');
}
/**