Skip to content

Commit

Permalink
fix nullability for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Nov 9, 2024
1 parent d16b555 commit 1234d77
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getName()
}


public function collect(Request $request, Response $response, \Throwable $exception = null): void
public function collect(Request $request, Response $response, \Throwable|null $exception = null): void
{
foreach ($this->queries as [$sqlQuery, $timeTaken, $rowsCount]) {
$row = [
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Exception/DriverException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct(
string $message,
private readonly int $errorCode = 0,
private readonly string $errorSqlState = '',
Exception $previousException = null
Exception|null $previousException = null
)
{
parent::__construct($message, 0, $previousException);
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Exception/QueryException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct(
string $message,
int $errorCode = 0,
string $errorSqlState = '',
Exception $previousException = null,
Exception|null $previousException = null,
private readonly ?string $sqlQuery = null
)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Exception/UnknownMysqlTimezoneException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct(
string $message,
int $errorCode = 0,
string $errorSqlState = '',
Exception $previousException = null,
Exception|null $previousException = null,
?string $sqlQuery = null,
)
{
Expand Down

0 comments on commit 1234d77

Please sign in to comment.