| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | private function forwardLog(array $query): void |
||
| 28 | { |
||
| 29 | $extra = [ |
||
| 30 | 'params' => $query['params'], |
||
| 31 | 'time' => number_format($query['executionMS'], 6), |
||
| 32 | ]; |
||
| 33 | |||
| 34 | // Here we cannot inject the logger via DI, or it would be created too early and |
||
| 35 | // break unit tests by creating two parallel connection to DB and thus timeout |
||
| 36 | // when a tests's transaction is pending but a log is trying to be written on the other connection |
||
| 37 | _log()->debug($query['sql'], $extra); |
||
| 38 | } |
||
| 40 |
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.