diff options
Diffstat (limited to 'vendor/symfony/cache/Tests/Fixtures/ArrayCache.php')
| -rw-r--r-- | vendor/symfony/cache/Tests/Fixtures/ArrayCache.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/symfony/cache/Tests/Fixtures/ArrayCache.php b/vendor/symfony/cache/Tests/Fixtures/ArrayCache.php index 27fb82de01..95b39d54bd 100644 --- a/vendor/symfony/cache/Tests/Fixtures/ArrayCache.php +++ b/vendor/symfony/cache/Tests/Fixtures/ArrayCache.php @@ -6,7 +6,7 @@ use Doctrine\Common\Cache\CacheProvider; class ArrayCache extends CacheProvider { - private $data = array(); + private $data = []; protected function doFetch($id) { @@ -26,7 +26,7 @@ class ArrayCache extends CacheProvider protected function doSave($id, $data, $lifeTime = 0) { - $this->data[$id] = array($data, $lifeTime ? microtime(true) + $lifeTime : false); + $this->data[$id] = [$data, $lifeTime ? microtime(true) + $lifeTime : false]; return true; } @@ -40,7 +40,7 @@ class ArrayCache extends CacheProvider protected function doFlush() { - $this->data = array(); + $this->data = []; return true; } |
