Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit 5eb2ce3

Browse files
committed
Minor optimizations...
1 parent c664bf5 commit 5eb2ce3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/DependencyInjection/PhpfastcacheExtension.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
namespace Phpfastcache\Bundle\DependencyInjection;
1818

19-
use Phpfastcache\Exceptions\PhpfastcacheDriverException;
2019
use Symfony\Component\DependencyInjection\ContainerBuilder;
2120
use Symfony\Component\Config\FileLocator;
2221
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
@@ -31,8 +30,6 @@ class PhpfastcacheExtension extends Extension
3130
/**
3231
* {@inheritDoc}
3332
*
34-
* @throws \Phpfastcache\Exceptions\PhpfastcacheDriverCheckException
35-
* @throws \Phpfastcache\Exceptions\PhpfastcacheDriverException
3633
* @throws \Exception
3734
* @throws \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
3835
* @throws \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
@@ -47,7 +44,7 @@ public function load(array $configs, ContainerBuilder $container)
4744
* Includes services_dev.yml only
4845
* if we are in debug mode
4946
*/
50-
if(in_array($container->getParameter('kernel.environment'), ['dev', 'test'])){
47+
if(\in_array($container->getParameter('kernel.environment'), ['dev', 'test'], true)){
5148
$loader->load('services_dev.yml');
5249
}
5350

0 commit comments

Comments
 (0)