Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit bc671aa

Browse files
gerryvdmfabpot
gerryvdm
authored andcommitted
Do strict check on environment name
Enable strict in_array() checking for conditionally enabling development bundles.
1 parent a522d9d commit bc671aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function registerBundles()
1919
new AppBundle\AppBundle(),
2020
);
2121

22-
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
22+
if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
2323
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
2424
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
2525
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();

0 commit comments

Comments
 (0)