mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-26 03:01:23 +02:00
fix: preparedId is nullable (#516)
This commit is contained in:
@@ -27,12 +27,14 @@ class TracedStatement
|
|||||||
|
|
||||||
protected $exception;
|
protected $exception;
|
||||||
|
|
||||||
|
protected $preparedId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $sql
|
* @param string $sql
|
||||||
* @param array $params
|
* @param array $params
|
||||||
* @param string $preparedId
|
* @param null|string $preparedId
|
||||||
*/
|
*/
|
||||||
public function __construct(string $sql, array $params = [], $preparedId = null)
|
public function __construct(string $sql, array $params = [], ?string $preparedId = null)
|
||||||
{
|
{
|
||||||
$this->sql = $sql;
|
$this->sql = $sql;
|
||||||
$this->parameters = $this->checkParameters($params);
|
$this->parameters = $this->checkParameters($params);
|
||||||
@@ -164,9 +166,9 @@ class TracedStatement
|
|||||||
/**
|
/**
|
||||||
* Returns the prepared statement id
|
* Returns the prepared statement id
|
||||||
*
|
*
|
||||||
* @return string
|
* @return null|string
|
||||||
*/
|
*/
|
||||||
public function getPreparedId() : string
|
public function getPreparedId() : ?string
|
||||||
{
|
{
|
||||||
return $this->preparedId;
|
return $this->preparedId;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user