From 85db4868dc5b7d3016183e116c879c1ee73eb716 Mon Sep 17 00:00:00 2001 From: rahal Date: Mon, 8 Jan 2024 12:28:52 +0100 Subject: [PATCH] Fix Fatal errors : Cannot redeclare Horde_Imap_Client_Cache_Backend::__serialize() and Cannot redeclare Horde_Imap_Client_Cache_Backend_Cache::__serialize() --- lib/Horde/Imap/Client/Cache/Backend.php | 13 ------------- lib/Horde/Imap/Client/Cache/Backend/Cache.php | 9 --------- 2 files changed, 22 deletions(-) diff --git a/lib/Horde/Imap/Client/Cache/Backend.php b/lib/Horde/Imap/Client/Cache/Backend.php index 6d140557..c9542c77 100644 --- a/lib/Horde/Imap/Client/Cache/Backend.php +++ b/lib/Horde/Imap/Client/Cache/Backend.php @@ -170,19 +170,6 @@ public function __serialize() return $this->_params; } - public function __unserialize(array $data) - { - $this->_params = $data; - } - - /** - * @return array - */ - public function __serialize() - { - return $this->_params; - } - public function __unserialize(array $data) { $this->_params = $data; diff --git a/lib/Horde/Imap/Client/Cache/Backend/Cache.php b/lib/Horde/Imap/Client/Cache/Backend/Cache.php index e3fe8264..e3fdff61 100644 --- a/lib/Horde/Imap/Client/Cache/Backend/Cache.php +++ b/lib/Horde/Imap/Client/Cache/Backend/Cache.php @@ -511,13 +511,4 @@ public function __serialize() return parent::__serialize(); } - /** - * @return array - */ - public function __serialize() - { - $this->save(); - return parent::__serialize(); - } - }