Skip to content

Commit 6be6a6a

Browse files
[VarDumper] Fix tests
1 parent 04138d9 commit 6be6a6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Dumper/CliDumperTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public function testThrowingCaster()
365365
#message: "Unexpected Exception thrown from a caster: Foobar"
366366
trace: {
367367
%sTwig.php:2 {
368-
__TwigTemplate_VarDumperFixture_u75a09->doDisplay(array \$context, array \$blocks = [])
368+
__TwigTemplate_VarDumperFixture_u75a09->doDisplay(array \$context, array \$blocks = []): array
369369
› foo bar
370370
› twig source
371371

Tests/Fixtures/Twig.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(?Twig\Environment $env = null, $path = null)
2828
$this->path = $path;
2929
}
3030

31-
protected function doDisplay(array $context, array $blocks = [])
31+
protected function doDisplay(array $context, array $blocks = []): array
3232
{
3333
// line 2
3434
throw new \Exception('Foobar');

0 commit comments

Comments
 (0)