Skip to content

Commit

Permalink
Compatibility with Twig 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 9, 2024
1 parent a4b2381 commit c68a928
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bundle/Templating/Twig/BaseDebugTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,4 @@ public function yield(array $context, array $blocks = []): iterable
yield $templateResult;
}
}

protected function doDisplay(array $context, array $blocks = []) {}
}
5 changes: 5 additions & 0 deletions bundle/Templating/Twig/DebugTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ public function getDebugInfo(): array
{
return [];
}

protected function doDisplay(array $context, array $blocks = []): iterable

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

View workflow job for this annotation

GitHub Actions / phpstan

Method Netgen\Bundle\SiteBundle\Templating\Twig\DebugTemplate::doDisplay() has parameter $blocks with no value type specified in iterable type array.

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

View workflow job for this annotation

GitHub Actions / phpstan

Method Netgen\Bundle\SiteBundle\Templating\Twig\DebugTemplate::doDisplay() has parameter $context with no value type specified in iterable type array.
{
return [];
}
}
2 changes: 2 additions & 0 deletions bundle/Templating/Twig/LegacyDebugTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ public function getDebugInfo()
{
return [];
}

protected function doDisplay(array $context, array $blocks = []) {}
}

0 comments on commit c68a928

Please sign in to comment.