Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Oct 5, 2023
1 parent a5d8400 commit f0746ab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/Database/Stub/Driver/TestDriverTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait TestDriverTrait
{
public int $disconnectCalls = 0;
public int $exceptionOnTransactionBegin = 0;
/** @var null|Closure(\PDOStatement $pdo, ?array $params): bool */
/** @var Closure(\PDOStatement $pdo, ?array $params): bool|null */
public ?Closure $queryCallback = null;

protected function getPDO(): PDOInterface
Expand Down
4 changes: 2 additions & 2 deletions tests/Database/Stub/Driver/TestPDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class TestPDO implements PDOInterface
{
private PDO $pdo;
private int $exceptionOnTransactionBegin;
/** @var null|Closure(\PDOStatement $pdo, ?array $params): bool */
/** @var Closure(\PDOStatement $pdo, ?array $params): bool|null */
private ?Closure $queryCallback;

/**
* @param null|Closure(\PDOStatement $pdo, ?array $params): bool $queryCallback
* @param Closure(\PDOStatement $pdo, ?array $params): bool|null $queryCallback
*/
public function __construct(PDO $pdo, int &$exceptionOnTransactionBegin, ?Closure $queryCallback)
{
Expand Down
12 changes: 6 additions & 6 deletions tests/Database/Stub/Driver/TestPDOStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
class TestPDOStatement implements PDOStatementInterface
{
private \PDOStatement $statement;
/** @var null|Closure(\PDOStatement $pdo, ?array $params): bool */
/** @var Closure(\PDOStatement $pdo, ?array $params): bool|null */
private ?Closure $queryCallback;

/**
* @param null|Closure(\PDOStatement $pdo, ?array $params): bool $queryCallback
* @param Closure(\PDOStatement $pdo, ?array $params): bool|null $queryCallback
*/
public function __construct(\PDOStatement $statement, ?Closure $queryCallback = null)
{
Expand Down Expand Up @@ -97,10 +97,10 @@ public function errorCode(): ?string
}

#[ArrayShape([0 => 'string', 1 => 'int', 2 => 'string'])]
public function errorInfo(): array
{
return $this->statement->errorInfo(...\func_get_args());
}
public function errorInfo(): array
{
return $this->statement->errorInfo(...\func_get_args());
}

public function setAttribute(int $attribute, mixed $value): bool
{
Expand Down

0 comments on commit f0746ab

Please sign in to comment.