From 972c2da98e4f32a66da19db5006637339c0c8e30 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 11 Apr 2023 14:56:52 +0000 Subject: [PATCH] Tumblr: Make it compatible with PHP 7.4.0 --- tumblr/tumblr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.39.5