| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | public function __construct(callable $nextHandler) |
| 32 | 32 | { |
| 33 | 33 | $this->nextHandler = $nextHandler; |
| 34 | 34 | } |
| 35 | - public function __invoke(CommandInterface $command, RequestInterface $request = null) | |
| 35 | + public function __invoke(CommandInterface $command, ?RequestInterface $request = null) | |
| 36 | 36 | { |
| 37 | 37 | $next = $this->nextHandler; |
| 38 | 38 | return $next($command, $request)->then(function (ResultInterface $result) use($command) { |
| 39 | 39 | $name = $command->getName(); |