Skip to content

Commit

Permalink
Mark paginator_theme & datalist_theme nodes as #[YieldReady]
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsche authored and jmsche committed Apr 24, 2024
1 parent 559e4a9 commit b41c32c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG-5.x.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
5.1.1
-----

* Mark paginator_theme & datalist_theme nodes as `#[YieldReady]`

5.1.0
-----

Expand Down
2 changes: 2 additions & 0 deletions src/Twig/Node/DatalistThemeNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

namespace Leapt\CoreBundle\Twig\Node;

use Twig\Attribute\YieldReady;
use Twig\Compiler;
use Twig\Node\Node;

#[YieldReady]
final class DatalistThemeNode extends Node
{
public function __construct(Node $datalist, Node $resources, $lineno, $tag = null)
Expand Down
2 changes: 2 additions & 0 deletions src/Twig/Node/PaginatorThemeNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

namespace Leapt\CoreBundle\Twig\Node;

use Twig\Attribute\YieldReady;
use Twig\Compiler;
use Twig\Node\Node;

#[YieldReady]
class PaginatorThemeNode extends Node
{
public function __construct(Node $paginator, Node $resources, $lineno, $tag = null)
Expand Down

0 comments on commit b41c32c

Please sign in to comment.