From e2e91ef6b0e4602e29f24258b429f9008e1d602a Mon Sep 17 00:00:00 2001 From: Wim Vandersmissen Date: Wed, 6 Nov 2013 09:57:49 +0100 Subject: [PATCH] removed superfluous check --- DependencyInjection/KunstmaanSentryExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/KunstmaanSentryExtension.php b/DependencyInjection/KunstmaanSentryExtension.php index 023f100..06a873d 100755 --- a/DependencyInjection/KunstmaanSentryExtension.php +++ b/DependencyInjection/KunstmaanSentryExtension.php @@ -26,7 +26,7 @@ public function load(array $configs, ContainerBuilder $container) $container->setParameter($this->getAlias(). '.dsn', $config['dsn']); if ($this->isConfigEnabled($container, $config)) { - if (!array_key_exists('dsn', $config) || empty($config['dsn'])) { + if (empty($config['dsn'])) { throw new InvalidArgumentException("The kunstmaan_sentry config array 'dsn' key is required."); } $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));