Skip to content

Commit

Permalink
PHP 8.0: TraceablePDO adding query arguments (#460)
Browse files Browse the repository at this point in the history
* php 8 fix

* Update TraceablePDO.php
  • Loading branch information
n0x073 authored Dec 7, 2020
1 parent c86c717 commit 6d51ee9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DebugBar/DataCollector/PDO/TraceablePDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,12 @@ public function prepare($statement, $driver_options = [])
*
* @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());
}
Expand Down

0 comments on commit 6d51ee9

Please sign in to comment.