Skip to content

Commit b48b32d

Browse files
committed
Add generics annotations
1 parent ad30b9a commit b48b32d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Topic/ConnectionPeriodicTimer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
use React\EventLoop\LoopInterface;
77
use React\EventLoop\TimerInterface;
88

9+
/**
10+
* @implements \IteratorAggregate<string, TimerInterface>
11+
*/
912
class ConnectionPeriodicTimer implements \IteratorAggregate, \Countable
1013
{
1114
/**

src/Topic/TopicPeriodicTimer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use React\EventLoop\LoopInterface;
66
use React\EventLoop\TimerInterface;
77

8+
/**
9+
* @implements \IteratorAggregate<string, array<string, TimerInterface>>
10+
*/
811
class TopicPeriodicTimer implements \IteratorAggregate
912
{
1013
/**

0 commit comments

Comments
 (0)