Skip to content

Commit

Permalink
Fix PHP 8.2 deprecations (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 committed Oct 12, 2023
1 parent 376ff32 commit 03dd40a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DebugBar/DataCollector/PDO/TraceablePDOStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function bindColumn($column, &$param, $type = null, $maxlen = null, $driv
{
$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);
}

/**
Expand All @@ -66,7 +66,7 @@ public function bindParam($parameter, &$variable, $data_type = PDO::PARAM_STR, $
{
$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);
}

/**
Expand Down

0 comments on commit 03dd40a

Please sign in to comment.