]> git.mxchange.org Git - friendica-addons.git/commitdiff
Tumblr: Make it compatible with PHP 7.4.0
authorMichael <heluecht@pirati.ca>
Tue, 11 Apr 2023 14:56:52 +0000 (14:56 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 11 Apr 2023 14:56:52 +0000 (14:56 +0000)
tumblr/tumblr.php

index c5c3b7b141fe9d4f195ef5a9643eae847db5e617..8fba3cc6fda0a4f7e89cad804331b54d21fdaf30 100644 (file)
@@ -442,7 +442,7 @@ function tumblr_send_npf(array $post): bool
        }
 }
 
-function tumblr_connection(int $uid): GuzzleHttp\Client|null
+function tumblr_connection(int $uid): ?GuzzleHttp\Client
 {
        $oauth_token        = DI::pConfig()->get($uid, 'tumblr', 'oauth_token');
        $oauth_token_secret = DI::pConfig()->get($uid, 'tumblr', 'oauth_token_secret');