From 288b55662f9ff7ccf821dc93f496beea3aed8b57 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 25 Nov 2018 16:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bcache=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/think/cache/Driver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/think/cache/Driver.php b/src/think/cache/Driver.php index e8425c2834..de7c8c5635 100644 --- a/src/think/cache/Driver.php +++ b/src/think/cache/Driver.php @@ -227,7 +227,7 @@ protected function getTagItem(string $tag): array * @param mixed $data * @return string */ - protected function serialize($data): string + protected function serialize($data) { if (is_scalar($data) || !$this->options['serialize']) { return $data; @@ -244,7 +244,7 @@ protected function serialize($data): string * @param string $data * @return mixed */ - protected function unserialize(string $data) + protected function unserialize($data) { if ($this->options['serialize'] && 0 === strpos($data, self::$serialize[2])) { $unserialize = self::$serialize[1];