Skip to content

Commit 06b78be

Browse files
committed
minor #2714 [Toolkit] Fix deprecation Kernel > 7.3 (smnandre)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Toolkit] Fix deprecation Kernel > 7.3 Fix ``` 2x: Since symfony/framework-bundle 7.3: Not setting the "with_constructor_extractor" option explicitly is deprecated because its default value will change in version 8.0. 2x in DebugKitCommandTest::testShouldBeAbleToDebug from Symfony\UX\Toolkit\Tests\Command ``` Commits ------- a88a3e4 [Toolkit] Fix deprecation Kernel > 7.3
2 parents 7f934c4 + a88a3e4 commit 06b78be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Toolkit/tests/Fixtures/Kernel.php

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ protected function configureContainer(ContainerConfigurator $container): void
4545
'property_access' => true,
4646
'http_client' => true,
4747
'handle_all_throwables' => true,
48+
49+
...(self::VERSION_ID >= 70300 ? [
50+
'property_info' => ['with_constructor_extractor' => false],
51+
] : []),
4852
]);
4953

5054
$container->extension('twig', [

0 commit comments

Comments
 (0)