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

Commit

Permalink
use array_key_exists instead of isset
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanotorresi committed Feb 13, 2017
1 parent da65f82 commit 6a10096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DriverFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function createWithConfig(ContainerInterface $container, $configKey)
$driver = new $config['class']($config['paths']);
}

if (isset($config['global_basename']) && $driver instanceof FileDriver) {
if (array_key_exists('global_basename', $config) && $driver instanceof FileDriver) {
$driver->setGlobalBasename($config['global_basename']);
}

Expand Down

0 comments on commit 6a10096

Please sign in to comment.