From 7605f4d3feb1fb81b921f908e615752d2882254e Mon Sep 17 00:00:00 2001 From: batyrmastyr Date: Sat, 6 Dec 2025 22:24:30 +0400 Subject: [PATCH 01/11] Adapt to changes in yiisoft/db:2.0 --- CHANGELOG.md | 2 +- composer.json | 2 +- src/DbCache.php | 4 ++-- src/DbSchemaManager.php | 23 +++++++++----------- tests/Common/AbstractDbSchemaManagerTest.php | 21 +++++++++--------- tests/Common/AbstractSQLDumpFileTest.php | 21 +++++++++--------- tests/Support/MssqlFactory.php | 2 +- tests/Support/MysqlFactory.php | 2 +- tests/Support/OracleFactory.php | 2 +- tests/Support/PgsqlFactory.php | 2 +- tests/Support/SqliteFactory.php | 2 +- 11 files changed, 39 insertions(+), 44 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0bb33d..ff4a3e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,6 @@ ## 1.0.1 under development -- no changes in this release. +- Chg #: Adapt to `yiisoft/db:^2.0` (@batyrmastyr) 1.0.0 May 09, 2023 diff --git a/composer.json b/composer.json index 7d2adf9..dceb6cd 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "ext-pdo": "*", "psr/log": "^2.0|^3.0", "psr/simple-cache": "^2.0|^3.0", - "yiisoft/db": "^1.0" + "yiisoft/db": "^2.0" }, "suggest": { "yiisoft/log": "^2.0" diff --git a/src/DbCache.php b/src/DbCache.php index 0170b17..f3bb690 100644 --- a/src/DbCache.php +++ b/src/DbCache.php @@ -13,8 +13,8 @@ use Psr\SimpleCache\InvalidArgumentException; use Throwable; use Traversable; -use Yiisoft\Db\Command\Param; use Yiisoft\Db\Connection\ConnectionInterface; +use Yiisoft\Db\Expression\Value\Param; use Yiisoft\Db\Query\Query; use function array_fill_keys; @@ -174,7 +174,7 @@ public function setMultiple(iterable $values, DateInterval|int|string|null $ttl if (!empty($rows) && !$this->isExpiredTtl($ttl)) { $this->db ->createCommand() - ->batchInsert($this->table, ['id', 'expire', 'data'], $rows) + ->insertBatch($this->table, $rows, ['id', 'expire', 'data']) ->execute(); } diff --git a/src/DbSchemaManager.php b/src/DbSchemaManager.php index 66713b9..68c10b9 100644 --- a/src/DbSchemaManager.php +++ b/src/DbSchemaManager.php @@ -9,7 +9,7 @@ use Yiisoft\Db\Exception\Exception; use Yiisoft\Db\Exception\InvalidConfigException; use Yiisoft\Db\Exception\NotSupportedException; -use Yiisoft\Db\Schema\SchemaInterface; +use Yiisoft\Db\Schema\Column\ColumnBuilder; /** * Manages the cache table schema in the database. @@ -32,19 +32,17 @@ public function __construct(private ConnectionInterface $db) */ public function ensureTable(string $table = '{{%yii_cache}}'): void { - $schema = $this->db->getSchema(); - $tableRawName = $schema->getRawTableName($table); - - if ($this->hasTable($table)) { + $tableRawName = $this->db->getQuoter()->getRawTableName($table); + if ($this->hasTable($tableRawName)) { return; } $this->db->createCommand()->createTable( $table, [ - 'id' => $schema->createColumn(SchemaInterface::TYPE_STRING, 128)->notNull(), - 'data' => $schema->createColumn(SchemaInterface::TYPE_BINARY), - 'expire' => $schema->createColumn(SchemaInterface::TYPE_INTEGER), + 'id' => ColumnBuilder::string(128)->notNull(), + 'data' => ColumnBuilder::binary(), + 'expire' => ColumnBuilder::integer(), "CONSTRAINT [[PK_$tableRawName]] PRIMARY KEY ([[id]])", ], )->execute(); @@ -61,10 +59,9 @@ public function ensureTable(string $table = '{{%yii_cache}}'): void */ public function ensureNoTable(string $table = '{{%yii_cache}}'): void { - $tableRawName = $this->db->getSchema()->getRawTableName($table); - - if ($this->hasTable($table)) { - $this->db->createCommand()->dropTable($tableRawName)->execute(); + $rawTableName = $this->db->getQuoter()->getRawTableName($table); + if ($this->hasTable($rawTableName)) { + $this->db->createCommand()->dropTable($rawTableName)->execute(); } } @@ -77,6 +74,6 @@ public function ensureNoTable(string $table = '{{%yii_cache}}'): void */ private function hasTable(string $table): bool { - return $this->db->getTableSchema($table, true) !== null; + return $this->db->getSchema()->hasTable($table, refresh: true); } } diff --git a/tests/Common/AbstractDbSchemaManagerTest.php b/tests/Common/AbstractDbSchemaManagerTest.php index ef1fd56..5426e73 100644 --- a/tests/Common/AbstractDbSchemaManagerTest.php +++ b/tests/Common/AbstractDbSchemaManagerTest.php @@ -9,11 +9,10 @@ use Yiisoft\Cache\Db\DbCache; use Yiisoft\Cache\Db\DbSchemaManager; use Yiisoft\Db\Connection\ConnectionInterface; -use Yiisoft\Db\Constraint\IndexConstraint; +use Yiisoft\Db\Constant\ColumnType; use Yiisoft\Db\Exception\Exception; use Yiisoft\Db\Exception\InvalidConfigException; use Yiisoft\Db\Exception\NotSupportedException; -use Yiisoft\Db\Schema\SchemaInterface; /** * @group Mssql @@ -99,12 +98,12 @@ public function testVerifyTableIndexes(string $table): void $schema = $this->db->getSchema(); - /** @psalm-var IndexConstraint[] $indexes */ - $indexes = $schema->getTableIndexes($dbCache->getTable(), true); + $index = $schema->getTablePrimaryKey($dbCache->getTable(), true); - $this->assertSame(['id'], $indexes[0]->getColumnNames()); - $this->assertTrue($indexes[0]->isUnique()); - $this->assertTrue($indexes[0]->isPrimary()); + $this->assertNotNull($index); + $this->assertSame(['id'], $index->columnNames); + $this->assertTrue($index->isUnique); + $this->assertTrue($index->isPrimaryKey); $this->dbSchemaManager->ensureNoTable($dbCache->getTable()); @@ -126,17 +125,17 @@ public function testVerifyTableStructure(string $table): void $this->dbSchemaManager->ensureTable($dbCache->getTable()); $tableSchema = $this->db->getTableSchema($dbCache->getTable()); - $tableRawName = $this->db->getSchema()->getRawTableName($dbCache->getTable()); + $tableRawName = $this->db->getQuoter()->getRawTableName($dbCache->getTable()); $this->assertNotNull($tableSchema); $this->assertSame($tableRawName, $tableSchema->getName()); $this->assertSame(['id'], $tableSchema->getPrimaryKey()); $this->assertSame(['id', 'data', 'expire'], $tableSchema->getColumnNames()); - $this->assertSame(SchemaInterface::TYPE_STRING, $tableSchema->getColumn('id')?->getType()); + $this->assertSame(ColumnType::STRING, $tableSchema->getColumn('id')?->getType()); $this->assertSame(128, $tableSchema->getColumn('id')?->getSize()); - $this->assertSame(SchemaInterface::TYPE_BINARY, $tableSchema->getColumn('data')?->getType()); - $this->assertSame(SchemaInterface::TYPE_INTEGER, $tableSchema->getColumn('expire')?->getType()); + $this->assertSame(ColumnType::BINARY, $tableSchema->getColumn('data')?->getType()); + $this->assertSame(ColumnType::INTEGER, $tableSchema->getColumn('expire')?->getType()); $this->dbSchemaManager->ensureNoTable($dbCache->getTable()); diff --git a/tests/Common/AbstractSQLDumpFileTest.php b/tests/Common/AbstractSQLDumpFileTest.php index 5aa4f8b..34c2b78 100644 --- a/tests/Common/AbstractSQLDumpFileTest.php +++ b/tests/Common/AbstractSQLDumpFileTest.php @@ -8,11 +8,10 @@ use Throwable; use Yiisoft\Cache\Db\DbCache; use Yiisoft\Db\Connection\ConnectionInterface; -use Yiisoft\Db\Constraint\IndexConstraint; +use Yiisoft\Db\Constant\ColumnType; use Yiisoft\Db\Exception\Exception; use Yiisoft\Db\Exception\InvalidConfigException; use Yiisoft\Db\Exception\NotSupportedException; -use Yiisoft\Db\Schema\SchemaInterface; /** * @group Mssql @@ -71,12 +70,12 @@ public function testVerifyTableIndexes(): void $schema = $this->db->getSchema(); - /** @psalm-var IndexConstraint[] $indexes */ - $indexes = $schema->getTableIndexes($dbCache->getTable(), true); + $index = $schema->getTablePrimaryKey($dbCache->getTable(), true); - $this->assertSame(['id'], $indexes[0]->getColumnNames()); - $this->assertTrue($indexes[0]->isUnique()); - $this->assertTrue($indexes[0]->isPrimary()); + $this->assertNotNull($index); + $this->assertSame(['id'], $index->columnNames); + $this->assertTrue($index->isPrimaryKey); + $this->assertTrue($index->isUnique); $this->loadFromSQLDumpFile(dirname(__DIR__, 2) . "/sql/$this->driverName-down.sql"); @@ -96,17 +95,17 @@ public function testVerifyTableStructure(): void $this->loadFromSQLDumpFile(dirname(__DIR__, 2) . "/sql/$this->driverName-up.sql"); $tableSchema = $this->db->getTableSchema($dbCache->getTable()); - $tableRawName = $this->db->getSchema()->getRawTableName($dbCache->getTable()); + $tableRawName = $this->db->getQuoter()->getRawTableName($dbCache->getTable()); $this->assertNotNull($tableSchema); $this->assertSame($tableRawName, $tableSchema->getName()); $this->assertSame(['id'], $tableSchema->getPrimaryKey()); $this->assertSame(['id', 'data', 'expire'], $tableSchema->getColumnNames()); - $this->assertSame(SchemaInterface::TYPE_STRING, $tableSchema->getColumn('id')?->getType()); + $this->assertSame(ColumnType::STRING, $tableSchema->getColumn('id')?->getType()); $this->assertSame(128, $tableSchema->getColumn('id')?->getSize()); - $this->assertSame(SchemaInterface::TYPE_BINARY, $tableSchema->getColumn('data')?->getType()); - $this->assertSame(SchemaInterface::TYPE_INTEGER, $tableSchema->getColumn('expire')?->getType()); + $this->assertSame(ColumnType::BINARY, $tableSchema->getColumn('data')?->getType()); + $this->assertSame(ColumnType::INTEGER, $tableSchema->getColumn('expire')?->getType()); $this->loadFromSQLDumpFile(dirname(__DIR__, 2) . "/sql/$this->driverName-down.sql"); diff --git a/tests/Support/MssqlFactory.php b/tests/Support/MssqlFactory.php index 138c4fc..1df2527 100644 --- a/tests/Support/MssqlFactory.php +++ b/tests/Support/MssqlFactory.php @@ -14,7 +14,7 @@ final class MssqlFactory extends ConnectionFactory public function createConnection(): ConnectionInterface { $pdoDriver = new Driver( - (new Dsn('sqlsrv', 'localhost', 'yiitest'))->asString(), + (new Dsn('sqlsrv', 'localhost', 'yiitest'))->__toString(), 'SA', 'YourStrong!Passw0rd', ); diff --git a/tests/Support/MysqlFactory.php b/tests/Support/MysqlFactory.php index e5e45d8..0a3be9b 100644 --- a/tests/Support/MysqlFactory.php +++ b/tests/Support/MysqlFactory.php @@ -14,7 +14,7 @@ final class MysqlFactory extends ConnectionFactory public function createConnection(): ConnectionInterface { $pdoDriver = new Driver( - (new Dsn('mysql', '127.0.0.1', 'yiitest', '3306', ['charset' => 'utf8mb4']))->asString(), + (new Dsn('mysql', '127.0.0.1', 'yiitest', '3306', ['charset' => 'utf8mb4']))->__toString(), 'root', '', ); diff --git a/tests/Support/OracleFactory.php b/tests/Support/OracleFactory.php index 9546f7f..0e3a309 100644 --- a/tests/Support/OracleFactory.php +++ b/tests/Support/OracleFactory.php @@ -15,7 +15,7 @@ final class OracleFactory extends ConnectionFactory public function createConnection(): ConnectionInterface { $pdoDriver = new Driver( - (new Dsn('oci', 'localhost', 'XE', '1521', ['charset' => 'AL32UTF8']))->asString(), + (new Dsn('oci', 'localhost', 'XE', '1521', ['charset' => 'AL32UTF8']))->__toString(), 'system', 'root' ); diff --git a/tests/Support/PgsqlFactory.php b/tests/Support/PgsqlFactory.php index 2f15395..9181489 100644 --- a/tests/Support/PgsqlFactory.php +++ b/tests/Support/PgsqlFactory.php @@ -14,7 +14,7 @@ final class PgsqlFactory extends ConnectionFactory public function createConnection(): ConnectionInterface { $pdoDriver = new Driver( - (new Dsn('pgsql', '127.0.0.1', 'yiitest', '5432'))->asString(), + (new Dsn('pgsql', '127.0.0.1', 'yiitest', '5432'))->__toString(), 'root', 'root', ); diff --git a/tests/Support/SqliteFactory.php b/tests/Support/SqliteFactory.php index 589e625..d8e7b1a 100644 --- a/tests/Support/SqliteFactory.php +++ b/tests/Support/SqliteFactory.php @@ -13,7 +13,7 @@ final class SqliteFactory extends ConnectionFactory { public function createConnection(): ConnectionInterface { - $pdoDriver = new Driver((new Dsn('sqlite', __DIR__ . '/runtime/yiitest.sq3'))->asString()); + $pdoDriver = new Driver((new Dsn('sqlite', __DIR__ . '/runtime/yiitest.sq3'))->__toString()); return new Connection($pdoDriver, $this->createSchemaCache()); } From 818d2b192d535911d997c36194efc2cb13bd64c8 Mon Sep 17 00:00:00 2001 From: batyrmastyr Date: Sun, 7 Dec 2025 10:18:03 +0400 Subject: [PATCH 02/11] Adapt to changes in yiisoft/db:2.0 --- CHANGELOG.md | 3 ++- composer.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff4a3e7..7a60bc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 1.0.1 under development -- Chg #: Adapt to `yiisoft/db:^2.0` (@batyrmastyr) +- Chg #88: Adapt to `yiisoft/db:2.0` changes, change supported version of `yiisoft/db` to `^2.0` (@batyrmastyr) +- Chg #88: Change supported PHP versions to `8.1 - 8.5` (@batyrmastyr) 1.0.0 May 09, 2023 diff --git a/composer.json b/composer.json index dceb6cd..aecdafe 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ } ], "require": { - "php": "^8.0", + "php": "8.1 - 8.5", "ext-pdo": "*", "psr/log": "^2.0|^3.0", "psr/simple-cache": "^2.0|^3.0", From 317506d971f18ae8306304567e6336c6d92b435e Mon Sep 17 00:00:00 2001 From: batyrmastyr Date: Sun, 7 Dec 2025 10:46:28 +0400 Subject: [PATCH 03/11] Remove PHP 8.0 from tests --- .github/workflows/bc.yml | 2 +- .github/workflows/mariadb.yml | 1 - .github/workflows/mssql.yml | 1 - .github/workflows/mysql.yml | 1 - .github/workflows/oracle.yml | 1 - .github/workflows/pgsql.yml | 1 - .github/workflows/rector.yml | 2 +- .github/workflows/sqlite.yml | 4 +++- 8 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index 1c77ba4..d1f9296 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -33,4 +33,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.0'] + ['8.1'] diff --git a/.github/workflows/mariadb.yml b/.github/workflows/mariadb.yml index 8da11e0..a654fd1 100644 --- a/.github/workflows/mariadb.yml +++ b/.github/workflows/mariadb.yml @@ -41,7 +41,6 @@ jobs: - ubuntu-latest php: - - 8.0 - 8.1 - 8.2 diff --git a/.github/workflows/mssql.yml b/.github/workflows/mssql.yml index 585dfb6..04b337b 100644 --- a/.github/workflows/mssql.yml +++ b/.github/workflows/mssql.yml @@ -41,7 +41,6 @@ jobs: - ubuntu-latest php: - - 8.0 - 8.1 - 8.2 diff --git a/.github/workflows/mysql.yml b/.github/workflows/mysql.yml index e6f1592..02c0359 100644 --- a/.github/workflows/mysql.yml +++ b/.github/workflows/mysql.yml @@ -41,7 +41,6 @@ jobs: - ubuntu-latest php: - - 8.0 - 8.1 - 8.2 diff --git a/.github/workflows/oracle.yml b/.github/workflows/oracle.yml index a815201..4f0cf77 100644 --- a/.github/workflows/oracle.yml +++ b/.github/workflows/oracle.yml @@ -41,7 +41,6 @@ jobs: - ubuntu-latest php: - - 8.0 - 8.1 - 8.2 diff --git a/.github/workflows/pgsql.yml b/.github/workflows/pgsql.yml index b5e0c77..2109874 100644 --- a/.github/workflows/pgsql.yml +++ b/.github/workflows/pgsql.yml @@ -41,7 +41,6 @@ jobs: - ubuntu-latest php: - - 8.0 - 8.1 - 8.2 diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 261938c..28d68da 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -22,4 +22,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.0'] + ['8.5'] diff --git a/.github/workflows/sqlite.yml b/.github/workflows/sqlite.yml index aabe16c..68c4d50 100644 --- a/.github/workflows/sqlite.yml +++ b/.github/workflows/sqlite.yml @@ -42,9 +42,11 @@ jobs: - windows-latest php: - - 8.0 - 8.1 - 8.2 + - 8.3 + - 8.4 + - 8.5 steps: - name: Checkout. From 833d363e296c3a4c088ac5b92ee427ac59e97dab Mon Sep 17 00:00:00 2001 From: batyrmastyr Date: Sun, 7 Dec 2025 12:16:25 +0400 Subject: [PATCH 04/11] Fix static analysis --- CHANGELOG.md | 1 + composer.json | 2 +- psalm.xml | 1 + src/DbCache.php | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a60bc5..58afff7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,5 +4,6 @@ - Chg #88: Adapt to `yiisoft/db:2.0` changes, change supported version of `yiisoft/db` to `^2.0` (@batyrmastyr) - Chg #88: Change supported PHP versions to `8.1 - 8.5` (@batyrmastyr) +- Chg #88: More correct types to pass static analysis (@batyrmastyr) 1.0.0 May 09, 2023 diff --git a/composer.json b/composer.json index aecdafe..d8c7c67 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,7 @@ "rector/rector": "^2.0.3", "roave/infection-static-analysis-plugin": "^1.25|^1.30", "spatie/phpunit-watcher": "^1.23", - "vimeo/psalm": "^4.30|^5.22", + "vimeo/psalm": "^4.30|^5.22|^6.13.1", "yiisoft/cache": "^3.0", "yiisoft/log": "^2.0" }, diff --git a/psalm.xml b/psalm.xml index b48c894..699bd5b 100644 --- a/psalm.xml +++ b/psalm.xml @@ -15,6 +15,7 @@ + diff --git a/src/DbCache.php b/src/DbCache.php index f3bb690..e6bf566 100644 --- a/src/DbCache.php +++ b/src/DbCache.php @@ -228,7 +228,7 @@ public function setLoggerMessageUpdate(string $value): void * Gets the cache data from the database. * * @param array|string $id One or more IDs for deleting data. - * @param array $fields Selectable fields. + * @param string[] $fields Selectable fields. * @param string $method Method of the returned data ("all", "scalar", "exists"). * * @return mixed The cache data. From 2db88ab711279ae873ce92ee0d5dece3572febb1 Mon Sep 17 00:00:00 2001 From: batyrmastyr Date: Sun, 7 Dec 2025 12:34:52 +0400 Subject: [PATCH 05/11] Fix mutation analysis --- .github/workflows/mutation.yml | 2 +- composer.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index bfa093f..bc84251 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -73,6 +73,6 @@ jobs: - name: Run infection. run: | - vendor/bin/roave-infection-static-analysis-plugin --threads=2 --ignore-msi-with-no-mutations --only-covered --test-framework-options="--testsuite=Pgsql" + vendor/bin/roave-infection-static-analysis-plugin --threads=2 --ignore-msi-with-no-mutations --test-framework-options="--testsuite=Pgsql" env: STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} diff --git a/composer.json b/composer.json index d8c7c67..0d17957 100644 --- a/composer.json +++ b/composer.json @@ -30,11 +30,12 @@ } ], "require": { - "php": "8.1 - 8.5", + "php": "8.1 - 8.4", "ext-pdo": "*", "psr/log": "^2.0|^3.0", "psr/simple-cache": "^2.0|^3.0", - "yiisoft/db": "^2.0" + "yiisoft/db": "^2.0", + "yiisoft/db-pgsql": "^2.0" }, "suggest": { "yiisoft/log": "^2.0" From 584b8b2e3e33f895164808fd5ddda90c3ae22f13 Mon Sep 17 00:00:00 2001 From: batyrmastyr Date: Sun, 7 Dec 2025 12:36:54 +0400 Subject: [PATCH 06/11] roave does not support php 8.5 --- .github/workflows/rector.yml | 2 +- .github/workflows/sqlite.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 28d68da..d9c5f14 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -22,4 +22,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.5'] + ['8.4'] diff --git a/.github/workflows/sqlite.yml b/.github/workflows/sqlite.yml index 68c4d50..31a62cd 100644 --- a/.github/workflows/sqlite.yml +++ b/.github/workflows/sqlite.yml @@ -46,7 +46,6 @@ jobs: - 8.2 - 8.3 - 8.4 - - 8.5 steps: - name: Checkout. From b91fa5ef39f5e51009ff96e911c3371ef6862164 Mon Sep 17 00:00:00 2001 From: batyrmastyr Date: Sun, 7 Dec 2025 12:52:00 +0400 Subject: [PATCH 07/11] revert --- composer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0d17957..3308166 100644 --- a/composer.json +++ b/composer.json @@ -34,8 +34,7 @@ "ext-pdo": "*", "psr/log": "^2.0|^3.0", "psr/simple-cache": "^2.0|^3.0", - "yiisoft/db": "^2.0", - "yiisoft/db-pgsql": "^2.0" + "yiisoft/db": "^2.0" }, "suggest": { "yiisoft/log": "^2.0" From 2f6b5c8f9473c0486751ba6b421fde83015298a9 Mon Sep 17 00:00:00 2001 From: batyrmastyr Date: Sun, 7 Dec 2025 12:58:08 +0400 Subject: [PATCH 08/11] Fix static analysis --- .github/workflows/static.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 76e69f8..b1d3e5a 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -57,7 +57,7 @@ jobs: run: composer self-update - name: Install dependencies with composer. - run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi + run: composer require yiisoft/db-sqlite --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi - name: Static analysis, run: vendor/bin/psalm --shepherd --stats --output-format=checkstyle --php-version=${{ matrix.php }} | cs2pr --graceful-warnings --colorize From c6c5b01020c858a2d673f6936f1ef63d3352ac90 Mon Sep 17 00:00:00 2001 From: batyrmastyr Date: Sun, 7 Dec 2025 16:17:57 +0400 Subject: [PATCH 09/11] Try fix bc-checker --- .github/workflows/bc.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index d1f9296..f315ed4 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -34,3 +34,5 @@ jobs: ['ubuntu-latest'] php: >- ['8.1'] + required-packages: >- + ['yiisoft/dummy-provider'] From 6ded874e48f9055378fc3ec779e31bb76959055d Mon Sep 17 00:00:00 2001 From: batyrmastyr Date: Sun, 7 Dec 2025 16:44:04 +0400 Subject: [PATCH 10/11] Try fix mssql --- .github/workflows/bc.yml | 2 -- .github/workflows/mssql.yml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index f315ed4..d1f9296 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -34,5 +34,3 @@ jobs: ['ubuntu-latest'] php: >- ['8.1'] - required-packages: >- - ['yiisoft/dummy-provider'] diff --git a/.github/workflows/mssql.yml b/.github/workflows/mssql.yml index 04b337b..964cb01 100644 --- a/.github/workflows/mssql.yml +++ b/.github/workflows/mssql.yml @@ -52,7 +52,7 @@ jobs: mssql: image: mcr.microsoft.com/mssql/${{ matrix.mssql }} env: - SA_PASSWORD: YourStrong!Passw0rd + MSSQL_SA_PASSWORD: YourStrong!Passw0rd ACCEPT_EULA: Y MSSQL_PID: Developer ports: From 6088002ae247efa67ce05058a6322b1b8a87f129 Mon Sep 17 00:00:00 2001 From: batyrmastyr Date: Mon, 8 Dec 2025 20:03:17 +0400 Subject: [PATCH 11/11] Try fix mssql, alt --- .github/workflows/mssql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mssql.yml b/.github/workflows/mssql.yml index 964cb01..1fe3929 100644 --- a/.github/workflows/mssql.yml +++ b/.github/workflows/mssql.yml @@ -45,8 +45,8 @@ jobs: - 8.2 mssql: - - server:2019-latest - - server:2022-latest + - server:2019-CU27-ubuntu-20.04 +# - server:2022-latest services: mssql: