Merge pull request 'Tumblr: Make it compatible with PHP 7.4.0' (#1370) from heluecht/friendica-addons:tumblr-php-7.4 into 2023.03-rc

Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1370
This commit is contained in:
Hypolite Petovan 2023-04-11 20:03:50 +02:00
commit 5cae2bffb2

View 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 = DI::pConfig()->get($uid, 'tumblr', 'oauth_token');
$oauth_token_secret = DI::pConfig()->get($uid, 'tumblr', 'oauth_token_secret'); $oauth_token_secret = DI::pConfig()->get($uid, 'tumblr', 'oauth_token_secret');