Skip to content

Commit 57a1e28

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [DebugBundle] Remove obsolete VarDumper feature detection Remove obsolete DBAL 2 compat code Fix for TraceableAuthenticator debug when no Auth [TwigBridge] Remove obsolete Workflow feature detection [Console] Remove Process::fromShellCommandline() detection [TwigBridge] Change return type of Symfony\Bridge\Twig\AppVariable::getSession() [mailer] reset $code variable each iteration for prevent wrong codes to be used bug [mailer] fix EsmtpTransport variable $code definition UrlHelper: minor code style fix [Serializer] Looking for DiscriminatorMap on interfaces when the current object also extends from a class [DoctrineBridge][Security] Rename loadUserByUsername tests to loadUserByIdentifier
2 parents 02a1d1b + 038471e commit 57a1e28

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

DependencyInjection/DebugExtension.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,10 @@ public function load(array $configs, ContainerBuilder $container): void
3838
$container->getDefinition('var_dumper.cloner')
3939
->addMethodCall('setMaxItems', [$config['max_items']])
4040
->addMethodCall('setMinDepth', [$config['min_depth']])
41-
->addMethodCall('setMaxString', [$config['max_string_length']]);
41+
->addMethodCall('setMaxString', [$config['max_string_length']])
42+
->addMethodCall('addCasters', [ReflectionCaster::UNSET_CLOSURE_FILE_INFO]);
4243

43-
if (method_exists(ReflectionCaster::class, 'unsetClosureFileInfo')) {
44-
$container->getDefinition('var_dumper.cloner')
45-
->addMethodCall('addCasters', [ReflectionCaster::UNSET_CLOSURE_FILE_INFO]);
46-
}
47-
48-
if (method_exists(HtmlDumper::class, 'setTheme') && 'dark' !== $config['theme']) {
44+
if ('dark' !== $config['theme']) {
4945
$container->getDefinition('var_dumper.html_dumper')
5046
->addMethodCall('setTheme', [$config['theme']]);
5147
}

0 commit comments

Comments
 (0)