Skip to content

Commit 6d51ee9

Browse files
authored
PHP 8.0: TraceablePDO adding query arguments (php-debugbar#460)
* php 8 fix * Update TraceablePDO.php
1 parent c86c717 commit 6d51ee9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DebugBar/DataCollector/PDO/TraceablePDO.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,12 @@ public function prepare($statement, $driver_options = [])
140140
*
141141
* @link http://php.net/manual/en/pdo.query.php
142142
* @param string $statement
143+
* @param int $fetchMode
144+
* @param mixed ...$fetchModeArgs
143145
* @return TraceablePDOStatement|bool PDO::query returns a PDOStatement object, or FALSE on
144146
* failure.
145147
*/
146-
public function query($statement)
148+
public function query($statement, $fetchMode = null, ...$fetchModeArgs)
147149
{
148150
return $this->profileCall('query', $statement, func_get_args());
149151
}

0 commit comments

Comments
 (0)