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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user