diff --git a/src/LaminasCache.php b/src/LaminasCache.php index 2d2f569..05899ea 100644 --- a/src/LaminasCache.php +++ b/src/LaminasCache.php @@ -22,18 +22,10 @@ class LaminasCache implements CacheInterface */ public function __construct(array $configuration) { - if (!isset($configuration['adapter'])) { - $configuration['adapter'] = 'Filesystem'; - } - - if (!isset($configuration['adapterOptions'])) { - $configuration['adapterOptions'] = []; - } - $cache = StorageFactory::factory([ 'adapter' => [ - 'name' => $configuration['adapter'], - 'options' => $configuration['adapterOptions'], + 'name' => $configuration['adapter'] ?? 'Filesystem', + 'options' => $configuration['adapterOptions'] ?? [], ], ]);