mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 12:37:15 +00:00
Set IteratorAggregate generics for Node
This will help PHPStan and Psalm to understand what happens when iterating over a Node.
This commit is contained in:
@@ -20,6 +20,8 @@ use Twig\Source;
|
||||
* Represents a node in the AST.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @implements \IteratorAggregate<int|string, Node>
|
||||
*/
|
||||
#[YieldReady]
|
||||
class Node implements \Countable, \IteratorAggregate
|
||||
|
||||
Reference in New Issue
Block a user