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];