From: Michael Date: Tue, 11 Apr 2023 14:56:52 +0000 (+0000) Subject: Tumblr: Make it compatible with PHP 7.4.0 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=972c2da98e4f32a66da19db5006637339c0c8e30;p=friendica-addons.git Tumblr: Make it compatible with PHP 7.4.0 --- diff --git a/tumblr/tumblr.php b/tumblr/tumblr.php index c5c3b7b1..8fba3cc6 100644 --- a/tumblr/tumblr.php +++ b/tumblr/tumblr.php @@ -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');