Skip to content

Commit 5359753

Browse files
authored
Fix psalm errors (#306)
1 parent adcb2ee commit 5359753

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/Command.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Exception;
88
use Throwable;
99
use Yiisoft\Db\Driver\Pdo\AbstractPdoCommand;
10-
use Yiisoft\Db\Driver\Pdo\PdoConnectionInterface;
1110
use Yiisoft\Db\Exception\ConvertException;
1211
use Yiisoft\Db\QueryBuilder\QueryBuilderInterface;
1312

@@ -49,7 +48,9 @@ protected function internalExecute(string|null $rawSql): void
4948
&& $this->db->getTransaction() === null
5049
) {
5150
$this->db->transaction(
52-
fn (PdoConnectionInterface $db) => $this->internalExecute($rawSql),
51+
function () use ($rawSql): void {
52+
$this->internalExecute($rawSql);
53+
},
5354
$this->isolationLevel
5455
);
5556
} else {

src/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* column_default: string|null,
5151
* is_autoinc: bool,
5252
* sequence_name: string|null,
53-
* enum_values: array<array-key, float|int|string>|string|null,
53+
* enum_values: string|null,
5454
* numeric_precision: int|null,
5555
* numeric_scale: int|null,
5656
* size: string|null,

0 commit comments

Comments
 (0)