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

fix: preparedId is nullable (#516)

This commit is contained in:
Joyce Babu
2023-02-04 20:57:00 +05:30
committed by GitHub
parent cd5e33f3cd
commit 17dcf3f6ed

View File

@@ -27,12 +27,14 @@ class TracedStatement
protected $exception;
protected $preparedId;
/**
* @param string $sql
* @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->parameters = $this->checkParameters($params);
@@ -164,9 +166,9 @@ class TracedStatement
/**
* Returns the prepared statement id
*
* @return string
* @return null|string
*/
public function getPreparedId() : string
public function getPreparedId() : ?string
{
return $this->preparedId;
}