Skip to content

Commit a25b0c8

Browse files
committed
minor #62363 [FrameworkBundle] Update deprecation message for collect_serializer_data (GromNaN)
This PR was merged into the 7.4 branch. Discussion ---------- [FrameworkBundle] Update deprecation message for `collect_serializer_data` | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT "false" is the default value. The current deprecation message makes me think I have set `collect_serializer_data: false` in my configuration, but in fact it was not specified. That was the default configuration: https://github.com/symfony/recipes/blob/main/symfony/web-profiler-bundle/6.1/config/packages/web_profiler.yaml#L11 Related to #60069 Commits ------- c2dfe2f [FrameworkBundle] Update deprecation message for collect_serializer_data
2 parents e56a9c9 + c2dfe2f commit a25b0c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ private function registerProfilerConfiguration(array $config, ContainerBuilder $
10531053
}
10541054

10551055
if (false === $config['collect_serializer_data']) {
1056-
trigger_deprecation('symfony/framework-bundle', '7.3', 'Setting the "framework.profiler.collect_serializer_data" config option to "false" is deprecated.');
1056+
trigger_deprecation('symfony/framework-bundle', '7.3', 'Not setting the "framework.profiler.collect_serializer_data" config option to "true" is deprecated.');
10571057
}
10581058

10591059
if ($this->isInitializedConfigEnabled('serializer') && $config['collect_serializer_data']) {

0 commit comments

Comments
 (0)