diff --git a/.gitattributes b/.gitattributes index 0e7b2047..e2b21a8d 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 1aee21d0..00000000 --- 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 diff --git a/composer.json b/composer.json index 94622861..fb2cb919 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": { diff --git a/tests/CommandTest.php b/tests/CommandTest.php index 32486c27..63a0db12 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