1 | <?php |
||
19 | final class EventBus implements EventBusInterface |
||
20 | { |
||
21 | /** |
||
22 | * Wrapped event dispatcher. |
||
23 | * |
||
24 | * @var ContainerAwareDispatcher |
||
25 | */ |
||
26 | private $wrappedDispatcher; |
||
27 | |||
28 | /** |
||
29 | * EventBus constructor. |
||
30 | * |
||
31 | * @param ContainerAwareDispatcher $wrappedDispatcher |
||
|
|||
32 | */ |
||
33 | public function __construct(EventDispatcher $wrappedDispatcher) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function dispatch(Event $event): void |
||
45 | } |
||
46 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.