Tumblr: Make it compatible with PHP 7.4.0

This commit is contained in:
Michael 2023-04-11 14:56:52 +00:00
parent 8a83cc2886
commit 972c2da98e

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