From 786494717e0eb150b5e63491a68c744fc0956681 Mon Sep 17 00:00:00 2001 From: Norbert Penel Date: Tue, 23 Jan 2024 17:36:07 +0100 Subject: [PATCH] Update Functions.php Fix problem with bootstrap mode --- src/Functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Functions.php b/src/Functions.php index 458dd73..8ef3e66 100644 --- a/src/Functions.php +++ b/src/Functions.php @@ -193,6 +193,6 @@ public static function isBackportCall($backtrace, $depth) public static function isRetrofitResource($imap) { - return is_resource($imap) && get_resource_type($imap) == 'imap'; + return get_class($imap) == 'IMAP\Connection'; } }