1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-28 04:00:43 +02:00

Fix PHP 8.2 deprecations (#531)

* Fix deprecation: Use of "parent" in callables is deprecated

* Fix deprecations in tests

Creation of dynamic properties is deprecated since php 8.2
This commit is contained in:
Stefan Schramm
2023-08-18 19:36:53 +02:00
committed by GitHub
parent 4a2075b7ce
commit dff80cdb1c
6 changed files with 12 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ class TraceablePDOStatement extends PDOStatement
public function bindValue($parameter, $value, $data_type = PDO::PARAM_STR) : bool
{
$this->boundParameters[$parameter] = $value;
return call_user_func_array(['parent', 'bindValue'], func_get_args());
return parent::bindValue(...func_get_args());
}
/**