1 | <?php |
||
13 | class CollectionHandler implements HandlerInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var HandlerInterface[] |
||
17 | */ |
||
18 | private $handlers; |
||
19 | |||
20 | /** |
||
21 | * @var HandlerInterface[] |
||
22 | */ |
||
23 | private $sorted; |
||
24 | |||
25 | 3 | public function __construct(array $handlers = []) |
|
33 | |||
34 | /** |
||
35 | * @param Message $message |
||
36 | */ |
||
37 | 2 | public function handle(Message $message) |
|
43 | |||
44 | 2 | public function addHandler(HandlerInterface $handler, int $priority = 0) |
|
49 | |||
50 | /** |
||
51 | * @return HandlerInterface[] |
||
52 | */ |
||
53 | 2 | public function getHandlers(): array |
|
61 | |||
62 | 2 | private function sortHandlers() |
|
67 | } |
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..