Skip to content

Commit

Permalink
改进cache类
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Nov 25, 2018
1 parent d135886 commit 288b556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/think/cache/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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];
Expand Down

0 comments on commit 288b556

Please sign in to comment.