From 177daf99a1b7d82f19132759963f5e0bec687f59 Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Sat, 27 Apr 2024 19:08:27 +0700 Subject: [PATCH 1/3] Remove Scrutinizer (#299) --- .gitattributes | 1 - .scrutinizer.yml | 41 ----------------------------------------- 2 files changed, 42 deletions(-) delete mode 100644 .scrutinizer.yml diff --git a/.gitattributes b/.gitattributes index 0e7b20472..e2b21a8d7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -26,7 +26,6 @@ /.editorconfig export-ignore /.gitattributes export-ignore /.gitignore export-ignore -/.scrutinizer.yml export-ignore /phpunit.xml.dist export-ignore /docs export-ignore diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 1aee21d06..000000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,41 +0,0 @@ -checks: - php: true - -filter: - paths: - - src/ - -build: - environment: - php: - version: 8.1.18 - ini: - xdebug.mode: coverage - - nodes: - analysis: - tests: - override: - - php-scrutinizer-run - - phpunit: - dependencies: - override: - - wget https://sqlite.org/2021/sqlite-autoconf-3340100.tar.gz --no-check-certificate - - tar -xvf sqlite-autoconf-3340100.tar.gz && cd sqlite-autoconf-3340100 - - CFLAGS="-O2 -DSQLITE_ENABLE_COLUMN_METADATA=1" ./configure - - make - - sudo make install - - export PATH="/usr/local/lib:$PATH" - - sqlite3 --version && cd .. - - composer self-update - - composer config preferred-install.yiisoft/db source - - composer update --no-interaction --no-progress --optimize-autoloader --ansi - - tests: - override: - - command: ./vendor/bin/phpunit --coverage-clover ./coverage.xml - on_node: 1 - coverage: - file: coverage.xml - format: php-clover From 5f3e354a2b2b2f376af9cc677c4e09192abbbf6a Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Sat, 27 Apr 2024 22:44:08 +0700 Subject: [PATCH 2/3] Update test according to main PR (#295) --- tests/CommandTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CommandTest.php b/tests/CommandTest.php index 32486c272..63a0db12a 100644 --- a/tests/CommandTest.php +++ b/tests/CommandTest.php @@ -156,7 +156,7 @@ public function testAlterColumn(): void public function testBatchInsert( string $table, array $columns, - array $values, + iterable $values, string $expected, array $expectedParams = [], int $insertedRow = 1 From 8efbb3e1dc6a360a0a740f078d1bb5a6b5e5ad56 Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Mon, 29 Apr 2024 10:00:35 +0700 Subject: [PATCH 3/3] Change db dependency to `dev-master` [skip ci] (#302) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 946228614..fb2cb9193 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "php": "^8.0", "ext-mbstring": "*", "ext-pdo": "*", - "yiisoft/db": "^1.2", + "yiisoft/db": "dev-master", "yiisoft/json": "^1.0" }, "require-dev": {