summaryrefslogtreecommitdiff
path: root/vendor/symfony/cache/Simple/ArrayCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/cache/Simple/ArrayCache.php')
-rw-r--r--vendor/symfony/cache/Simple/ArrayCache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/symfony/cache/Simple/ArrayCache.php b/vendor/symfony/cache/Simple/ArrayCache.php
index 6785943787..e36dacb829 100644
--- a/vendor/symfony/cache/Simple/ArrayCache.php
+++ b/vendor/symfony/cache/Simple/ArrayCache.php
@@ -104,7 +104,7 @@ class ArrayCache implements CacheInterface, LoggerAwareInterface, ResettableInte
CacheItem::validateKey($key);
}
- return $this->setMultiple(array($key => $value), $ttl);
+ return $this->setMultiple([$key => $value], $ttl);
}
/**
@@ -115,7 +115,7 @@ class ArrayCache implements CacheInterface, LoggerAwareInterface, ResettableInte
if (!\is_array($values) && !$values instanceof \Traversable) {
throw new InvalidArgumentException(sprintf('Cache values must be array or Traversable, "%s" given', \is_object($values) ? \get_class($values) : \gettype($values)));
}
- $valuesArray = array();
+ $valuesArray = [];
foreach ($values as $key => $value) {
if (!\is_int($key) && !(\is_string($key) && isset($this->expiries[$key]))) {