From 6d51ee9e94cff14412783785e79a4e7ef97b9d62 Mon Sep 17 00:00:00 2001 From: n0x073 <72650981+n0x073@users.noreply.github.com> Date: Mon, 7 Dec 2020 12:07:24 +0100 Subject: [PATCH] PHP 8.0: TraceablePDO adding query arguments (#460) * php 8 fix * Update TraceablePDO.php --- src/DebugBar/DataCollector/PDO/TraceablePDO.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DebugBar/DataCollector/PDO/TraceablePDO.php b/src/DebugBar/DataCollector/PDO/TraceablePDO.php index e448a79..b1b2836 100644 --- a/src/DebugBar/DataCollector/PDO/TraceablePDO.php +++ b/src/DebugBar/DataCollector/PDO/TraceablePDO.php @@ -140,10 +140,12 @@ class TraceablePDO extends PDO * * @link http://php.net/manual/en/pdo.query.php * @param string $statement + * @param int $fetchMode + * @param mixed ...$fetchModeArgs * @return TraceablePDOStatement|bool PDO::query returns a PDOStatement object, or FALSE on * failure. */ - public function query($statement) + public function query($statement, $fetchMode = null, ...$fetchModeArgs) { return $this->profileCall('query', $statement, func_get_args()); }