Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function __invoke(object $query, callable $next): Interfaces\Result |
||
16 | { |
||
17 | /** @var \RemotelyLiving\PHPQueryBus\Interfaces\Result $result */ |
||
18 | $result = $next($query); |
||
19 | |||
20 | if ($result->hasErrors()) { |
||
21 | $this->getLogger()->error('Query bus result fetched with errors', $this->formatErrorContext($result)); |
||
22 | } |
||
23 | |||
24 | return $result; |
||
25 | } |
||
43 |