diff --git a/src/Command.php b/src/Command.php index 9556d5ddf..1b125e3c4 100644 --- a/src/Command.php +++ b/src/Command.php @@ -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; @@ -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 { diff --git a/src/Schema.php b/src/Schema.php index f40a3fa36..4b1b6a809 100644 --- a/src/Schema.php +++ b/src/Schema.php @@ -50,7 +50,7 @@ * column_default: string|null, * is_autoinc: bool, * sequence_name: string|null, - * enum_values: array|string|null, + * enum_values: string|null, * numeric_precision: int|null, * numeric_scale: int|null, * size: string|null,