Skip to content

Commit 03dd40a

Browse files
authored
Fix PHP 8.2 deprecations (php-debugbar#579)
1 parent 376ff32 commit 03dd40a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DebugBar/DataCollector/PDO/TraceablePDOStatement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function bindColumn($column, &$param, $type = null, $maxlen = null, $driv
4444
{
4545
$this->boundParameters[$column] = $param;
4646
$args = array_merge([$column, &$param], array_slice(func_get_args(), 2));
47-
return call_user_func_array(['parent', 'bindColumn'], $args);
47+
return parent::bindColumn(...$args);
4848
}
4949

5050
/**
@@ -66,7 +66,7 @@ public function bindParam($parameter, &$variable, $data_type = PDO::PARAM_STR, $
6666
{
6767
$this->boundParameters[$parameter] = $variable;
6868
$args = array_merge([$parameter, &$variable], array_slice(func_get_args(), 2));
69-
return call_user_func_array(['parent', 'bindParam'], $args);
69+
return parent::bindParam(...$args);
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)