From d7a69b60298983f8d62aaecc4464be6550b99715 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sun, 17 Jun 2012 15:55:30 -0400 Subject: [PATCH] typo fix. --- framework/caching/Cache.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/caching/Cache.php b/framework/caching/Cache.php index 4e6cb8f..8645ff4 100644 --- a/framework/caching/Cache.php +++ b/framework/caching/Cache.php @@ -163,9 +163,9 @@ abstract class Cache extends ApplicationComponent implements \ArrayAccess $dependency->evaluateDependency(); } if ($this->serializer === null) { - $value = array(serialize($value), $dependency); + $value = serialize(array($value, $dependency)); } elseif ($this->serializer !== false) { - $value = array(call_user_func($this->serializer[0], $value), $dependency); + $value = call_user_func($this->serializer[0], array($value, $dependency)); } return $this->setValue($this->generateCacheKey($id), $value, $expire); } @@ -186,9 +186,9 @@ abstract class Cache extends ApplicationComponent implements \ArrayAccess $dependency->evaluateDependency(); } if ($this->serializer === null) { - $value = array(serialize($value), $dependency); + $value = serialize(array($value, $dependency)); } elseif ($this->serializer !== false) { - $value = array(call_user_func($this->serializer[0], $value), $dependency); + $value = call_user_func($this->serializer[0], array($value, $dependency)); } return $this->addValue($this->generateCacheKey($id), $value, $expire); }