From d392d5337c1fdc554448fc0a9e643bd755cd9a34 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Sat, 31 Oct 2026 10:12:31 +0300 Subject: [PATCH 1/2] Switch to infection/infection --- .github/workflows/mutation.yml | 3 ++- composer.json | 2 +- docs/internals.md | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 6a6bb1b..ffd2c78 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -23,11 +23,12 @@ concurrency: jobs: mutation: - uses: yiisoft/actions/.github/workflows/roave-infection.yml@master + uses: yiisoft/actions/.github/workflows/infection.yml@master with: os: >- ['ubuntu-latest'] php: >- ['8.1'] + infection-args: --ignore-msi-with-no-mutations secrets: STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} diff --git a/composer.json b/composer.json index db70d74..ed9fdf0 100644 --- a/composer.json +++ b/composer.json @@ -34,9 +34,9 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.95", + "infection/infection": "^0.29.8 || ^0.35.8", "phpunit/phpunit": "^10.5.47", "rector/rector": "^2.1", - "roave/infection-static-analysis-plugin": "^1.35", "shipmonk/composer-dependency-analyser": "^1.8", "spatie/phpunit-watcher": "^1.24", "vimeo/psalm": "^5.26.1 || ^6.12", diff --git a/docs/internals.md b/docs/internals.md index b77907c..f486439 100644 --- a/docs/internals.md +++ b/docs/internals.md @@ -10,11 +10,10 @@ The package is tested with [PHPUnit](https://phpunit.de/). To run tests: ## Mutation testing -The package tests are checked with [Infection](https://infection.github.io/) mutation framework with -[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it: +The package tests are checked with [Infection](https://infection.github.io/) mutation framework. To run it: ```shell -./vendor/bin/roave-infection-static-analysis-plugin +./vendor/bin/infection ``` ## Static analysis From d339bd1f5282b99dc5370024aa49f02c0d92fb70 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 31 Oct 2026 07:57:03 +0000 Subject: [PATCH 2/2] Apply PHP CS Fixer and Rector changes (CI) --- tests/ConfigTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/ConfigTest.php b/tests/ConfigTest.php index 1a2af3b..b86d66b 100644 --- a/tests/ConfigTest.php +++ b/tests/ConfigTest.php @@ -53,9 +53,7 @@ private function createContainer(?array $params = null): Container private function getDiConfig(?array $params = null): array { - if ($params === null) { - $params = $this->getParams(); - } + $params ??= $this->getParams(); return require dirname(__DIR__) . '/config/di.php'; }