Tumblr: Make it compatible with PHP 7.4.0 #1370

Merged
MrPetovan merged 1 commit from heluecht/friendica-addons:tumblr-php-7.4 into 2023.03-rc 2023-04-11 20:03:51 +02:00
Showing only changes of commit 972c2da98e - Show all commits

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');