Skip to content

Commit

Permalink
Fix compatibility with Twig 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 2, 2024
1 parent c06a504 commit 61fa53c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bundle/Templating/Twig/DebugTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,20 @@ public function yield(array $context, array $blocks = []): iterable
}
}

public function getTemplateName()
public function getTemplateName(): string
{
return '';
}

public function getSourceContext()
public function getSourceContext(): Source
{
return new Source('', '');
}

/**
* @return array<string, mixed>
*/
public function getDebugInfo()
public function getDebugInfo(): array

Check failure on line 89 in bundle/Templating/Twig/DebugTemplate.php

View workflow job for this annotation

GitHub Actions / phpstan

Return type (array<string, mixed>) of method Netgen\Bundle\SiteBundle\Templating\Twig\DebugTemplate::getDebugInfo() should be compatible with return type (array<int, int>) of method Twig\Template::getDebugInfo()
{
return [];
}
Expand Down

0 comments on commit 61fa53c

Please sign in to comment.