Skip to content

Commit

Permalink
Fix psalm errors (yiisoft#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Aug 2, 2023
1 parent adcb2ee commit 5359753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Exception;
use Throwable;
use Yiisoft\Db\Driver\Pdo\AbstractPdoCommand;
use Yiisoft\Db\Driver\Pdo\PdoConnectionInterface;
use Yiisoft\Db\Exception\ConvertException;
use Yiisoft\Db\QueryBuilder\QueryBuilderInterface;

Expand Down Expand Up @@ -49,7 +48,9 @@ protected function internalExecute(string|null $rawSql): void
&& $this->db->getTransaction() === null
) {
$this->db->transaction(
fn (PdoConnectionInterface $db) => $this->internalExecute($rawSql),
function () use ($rawSql): void {
$this->internalExecute($rawSql);
},
$this->isolationLevel
);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* column_default: string|null,
* is_autoinc: bool,
* sequence_name: string|null,
* enum_values: array<array-key, float|int|string>|string|null,
* enum_values: string|null,
* numeric_precision: int|null,
* numeric_scale: int|null,
* size: string|null,
Expand Down

0 comments on commit 5359753

Please sign in to comment.