1 | <?php |
||
13 | class EventMiddleware implements Middleware |
||
14 | { |
||
15 | /** |
||
16 | * The event dispatcher instance. |
||
17 | * |
||
18 | * @var Illuminate\Contracts\Events\Dispatcher |
||
19 | */ |
||
20 | protected $dispatcher; |
||
21 | |||
22 | /** |
||
23 | * Create a new command events middleware. |
||
24 | * |
||
25 | * @param Illuminate\Contracts\Events\Dispatcher $dispatcher |
||
26 | */ |
||
27 | public function __construct(Dispatcher $dispatcher) |
||
31 | |||
32 | /** |
||
33 | * Dispatch an event whenever a command is received, handled or fails. |
||
34 | * |
||
35 | * @param object $command |
||
36 | * @param callable $next |
||
37 | * @return mixed |
||
38 | * |
||
39 | * @throws Exception |
||
40 | * @throws Throwable |
||
41 | */ |
||
42 | public function execute($command, callable $next) |
||
70 | } |
||
71 |
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..