mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-25 18:51:42 +02:00
Fix PHP 8.2 deprecations (#579)
This commit is contained in:
@@ -44,7 +44,7 @@ class TraceablePDOStatement extends PDOStatement
|
||||
{
|
||||
$this->boundParameters[$column] = $param;
|
||||
$args = array_merge([$column, &$param], array_slice(func_get_args(), 2));
|
||||
return call_user_func_array(['parent', 'bindColumn'], $args);
|
||||
return parent::bindColumn(...$args);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -66,7 +66,7 @@ class TraceablePDOStatement extends PDOStatement
|
||||
{
|
||||
$this->boundParameters[$parameter] = $variable;
|
||||
$args = array_merge([$parameter, &$variable], array_slice(func_get_args(), 2));
|
||||
return call_user_func_array(['parent', 'bindParam'], $args);
|
||||
return parent::bindParam(...$args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user