Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class CommandMiddleware implements Middleware |
||
11 | { |
||
12 | |||
13 | /** @var Client */ |
||
14 | protected $bot; |
||
15 | |||
16 | public function __construct(Bot $bot) |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Process an incoming event modifying it as needed |
||
23 | * The returned event should optionally be passed to the next $handler |
||
24 | * |
||
25 | * @param Event $event |
||
26 | * @param Handler $handler |
||
27 | * @return Event |
||
28 | */ |
||
29 | public function process(Event $event, Handler $handler): Event |
||
36 | } |
||
37 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..