From 6be6a6a8af4818564e3726fc65cf936f34743cef Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 30 Aug 2024 18:01:46 +0200 Subject: [PATCH] [VarDumper] Fix tests --- Tests/Dumper/CliDumperTest.php | 2 +- Tests/Fixtures/Twig.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Dumper/CliDumperTest.php b/Tests/Dumper/CliDumperTest.php index 918f5f7..ad49e22 100644 --- a/Tests/Dumper/CliDumperTest.php +++ b/Tests/Dumper/CliDumperTest.php @@ -365,7 +365,7 @@ public function testThrowingCaster() #message: "Unexpected Exception thrown from a caster: Foobar" trace: { %sTwig.php:2 { - __TwigTemplate_VarDumperFixture_u75a09->doDisplay(array \$context, array \$blocks = []) + __TwigTemplate_VarDumperFixture_u75a09->doDisplay(array \$context, array \$blocks = []): array › foo bar › twig source › diff --git a/Tests/Fixtures/Twig.php b/Tests/Fixtures/Twig.php index 3d33cad..e26a392 100644 --- a/Tests/Fixtures/Twig.php +++ b/Tests/Fixtures/Twig.php @@ -28,7 +28,7 @@ public function __construct(?Twig\Environment $env = null, $path = null) $this->path = $path; } - protected function doDisplay(array $context, array $blocks = []) + protected function doDisplay(array $context, array $blocks = []): array { // line 2 throw new \Exception('Foobar');