@@ -51,10 +51,10 @@ value but an empty object which implements the :class:`Symfony\\Component\\Cache
5151class.
5252
5353If you need to fetch several cache items simultaneously, use instead the
54- ``getItems(array( $key1, $key2, ...) ) `` method::
54+ ``getItems([ $key1, $key2, ...] ) `` method::
5555
5656 // ...
57- $stocks = $cache->getItems(array( 'AAPL', 'FB', 'GOOGL', 'MSFT') );
57+ $stocks = $cache->getItems([ 'AAPL', 'FB', 'GOOGL', 'MSFT'] );
5858
5959Again, if any of the keys doesn't represent a valid cache item, you won't get
6060a ``null `` value but an empty ``CacheItem `` object.
@@ -115,7 +115,7 @@ delete several cache items simultaneously (it returns ``true`` only if all the
115115items have been deleted, even when any or some of them don't exist)::
116116
117117 // ...
118- $areDeleted = $cache->deleteItems(array( 'category1', 'category2') );
118+ $areDeleted = $cache->deleteItems([ 'category1', 'category2'] );
119119
120120Finally, to remove all the cache items stored in the pool, use the
121121``Psr\\Cache\\CacheItemPoolInterface::clear `` method (which returns ``true ``
@@ -190,13 +190,13 @@ silently ignored)::
190190 use Symfony\Component\Cache\Adapter\PdoAdapter;
191191 use Symfony\Component\Cache\Adapter\PhpFilesAdapter;
192192
193- $cache = new ChainAdapter(array(
193+ $cache = new ChainAdapter([
194194 new ApcuAdapter(), // does NOT implement PruneableInterface
195195 new FilesystemAdapter(), // DOES implement PruneableInterface
196196 new PdoAdapter(), // DOES implement PruneableInterface
197197 new PhpFilesAdapter(), // DOES implement PruneableInterface
198198 // ...
199- ) );
199+ ] );
200200
201201 // prune will proxy the call to PdoAdapter, FilesystemAdapter and PhpFilesAdapter,
202202 // while silently skipping ApcuAdapter
0 commit comments