Skip to content

Commit 531700e

Browse files
smnandreweaverryan
authored andcommitted
[TwigComponent] Remove 3 futures deprecations (minor)
1 parent 7412bd2 commit 531700e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/TwigComponent/tests/Fixtures/Kernel.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +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-
]);
44+
'php_errors' => ['log' => true],
45+
];
46+
if (self::VERSION_ID >= 60200) {
47+
$frameworkConfig['handle_all_throwables'] = true;
48+
}
49+
$c->extension('framework', $frameworkConfig);
50+
4551
$c->extension('twig', [
4652
'default_path' => '%kernel.project_dir%/tests/Fixtures/templates',
4753
]);

src/TwigComponent/tests/Unit/TwigPreLexerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testPreLex(string $input, string $expectedOutput): void
2525
$this->assertSame($expectedOutput, $lexer->preLexComponents($input));
2626
}
2727

28-
public function getLexTests(): iterable
28+
public static function getLexTests(): iterable
2929
{
3030
yield 'simple_component' => [
3131
'<twig:foo />',

0 commit comments

Comments
 (0)