Skip to content

Commit

Permalink
[VarDumper] Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Aug 30, 2024
1 parent 04138d9 commit 6be6a6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/Dumper/CliDumperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6be6a6a

Please sign in to comment.