From 535975396d865da6cb15ed7bee5648c27a9b7360 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Wed, 2 Aug 2023 09:46:00 +0300 Subject: [PATCH] Fix psalm errors (#306) --- src/Command.php | 5 +++-- src/Schema.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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,