Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Removed coalesce operator in order to make it backwards compatible wi…
Browse files Browse the repository at this point in the history
…th PHP < 7.x
  • Loading branch information
arjanvdbos committed Mar 30, 2017
1 parent 104015a commit 98a0d6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/CacheFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ protected function createWithConfig(ContainerInterface $container, $configKey)
break;

case ChainCache::class:

$providers = array_map(function($provider) use ($container) {
return $this->createWithConfig($container, $provider);
},
$config['providers'] ?? []
is_array($config['providers']) ? $config['providers'] : []
);
$cache = new $config['class']($providers);
break;
Expand Down

0 comments on commit 98a0d6a

Please sign in to comment.