Skip to content

Commit 70f353f

Browse files
committed
Fix `handle_all_throwable is set before 6.2
1 parent 248793a commit 70f353f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/TwigComponent/tests/Fixtures/Kernel.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,19 @@ public function registerBundles(): iterable
3535

3636
protected function configureContainer(ContainerConfigurator $c): void
3737
{
38-
$c->extension('framework', [
38+
$frameworkConfig = [
3939
'secret' => 'S3CRET',
4040
'test' => true,
4141
'router' => ['utf8' => true],
4242
'secrets' => false,
4343
'http_method_override' => false,
44-
'handle_all_throwables' => true,
4544
'php_errors' => ['log' => true],
46-
]);
45+
];
46+
if (self::VERSION_ID >= 60200) {
47+
$frameworkConfig['handle_all_throwables'] = true;
48+
}
49+
$c->extension('framework', $frameworkConfig);
50+
4751
$c->extension('twig', [
4852
'default_path' => '%kernel.project_dir%/tests/Fixtures/templates',
4953
]);

0 commit comments

Comments
 (0)