1 | <?php |
||
17 | class TacticianBus extends BaseTacticianBus implements BusContract |
||
18 | { |
||
19 | /** |
||
20 | * Build the bus. |
||
21 | * |
||
22 | * @param Middleware[] $middleware |
||
|
|||
23 | */ |
||
24 | public function __construct(array $middlewares = []) |
||
32 | |||
33 | /** |
||
34 | * Dispatch a message to its appropriate handler. |
||
35 | * |
||
36 | * @param WZRD\Contracts\Messaging\Message $message |
||
37 | */ |
||
38 | public function dispatch(MessageContract $message) |
||
50 | |||
51 | /** |
||
52 | * Subscribes the handler to this bus. |
||
53 | * |
||
54 | * @param WZRD\Contracts\Messaging\Handler $handler |
||
55 | */ |
||
56 | public function subscribe(HandlerContract $handler) |
||
68 | } |
||
69 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.