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

Commit ee35855

Browse files
committed
minor #737 Do strict check on environment name in AppKernel.php (gerryvdm)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #737). Discussion ---------- Do strict check on environment name in AppKernel.php Enable strict in_array() comparison when conditionally enabling development bundles. Commits ------- bc671aa Do strict check on environment name
2 parents a522d9d + bc671aa commit ee35855

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)