1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 21:08:34 +01:00

PHP 8.0: TraceablePDO adding query arguments (#460)

* php 8 fix

* Update TraceablePDO.php
This commit is contained in:
n0x073 2020-12-07 12:07:24 +01:00 committed by GitHub
parent c86c717e4b
commit 6d51ee9e94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());
}