File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public function getConfigTreeBuilder(): TreeBuilder
92
92
->info ('Set true to enable support for xsendfile in binary file responses. ' )
93
93
->defaultFalse ()
94
94
->end ()
95
- ->scalarNode ('ide ' )->defaultValue ('%env(default::SYMFONY_IDE)% ' )->end ()
95
+ ->scalarNode ('ide ' )->defaultValue ($ this -> debug ? '%env(default::SYMFONY_IDE)% ' : null )->end ()
96
96
->booleanNode ('test ' )->end ()
97
97
->scalarNode ('default_locale ' )->defaultValue ('en ' )->end ()
98
98
->booleanNode ('set_locale_from_accept_language ' )
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public function testParametersValuesAreFullyResolved(bool $debug)
141
141
$ this ->assertStringContainsString ('locale: en ' , $ tester ->getDisplay ());
142
142
$ this ->assertStringContainsString ('secret: test ' , $ tester ->getDisplay ());
143
143
$ this ->assertStringContainsString ('cookie_httponly: true ' , $ tester ->getDisplay ());
144
- $ this ->assertStringContainsString ('ide: ' .($ _ENV ['SYMFONY_IDE ' ] ?? $ _SERVER ['SYMFONY_IDE ' ] ?? 'null ' ), $ tester ->getDisplay ());
144
+ $ this ->assertStringContainsString ('ide: ' .$ debug ? ($ _ENV ['SYMFONY_IDE ' ] ?? $ _SERVER ['SYMFONY_IDE ' ] ?? 'null ' ) : ' null ' , $ tester ->getDisplay ());
145
145
}
146
146
147
147
/**
You can’t perform that action at this time.
0 commit comments