diff --git a/.github/workflows/bechmark.yml b/.github/workflows/bechmark.yml index fc26e3bf..cdd6b5f8 100644 --- a/.github/workflows/bechmark.yml +++ b/.github/workflows/bechmark.yml @@ -31,4 +31,4 @@ jobs: os: >- ['ubuntu-latest', 'windows-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2', '8.3', '8.4'] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 777e244e..afd1cfb9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,4 +32,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2', '8.3', '8.4'] diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index a857bce6..a93390b1 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -31,4 +31,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2', '8.3', '8.4'] diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index a6873e2e..a56769ea 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -27,6 +27,6 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.3'] + ['8.4'] secrets: STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 457772af..5d6931d5 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -21,4 +21,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.3'] + ['8.4'] diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index e33eca86..d03874dc 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -29,4 +29,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2', '8.3', '8.4'] diff --git a/composer.json b/composer.json index 5109f74c..8afbf5a0 100644 --- a/composer.json +++ b/composer.json @@ -51,8 +51,9 @@ "phpunit/phpunit": "^10.5", "rector/rector": "^2.0", "roave/infection-static-analysis-plugin": "^1.34", + "infection/infection": "^0.27.8||^0.29.0", "spatie/phpunit-watcher": "^1.23", - "vimeo/psalm": "^5.20", + "vimeo/psalm": "^5.20||^6.0", "yiisoft/test-support": "^3.0", "yiisoft/yii-debug": "dev-master" }, diff --git a/tests/Unit/Middleware/Consume/MiddlewareDispatcherTest.php b/tests/Unit/Middleware/Consume/MiddlewareDispatcherTest.php index 15d1356c..b4739110 100644 --- a/tests/Unit/Middleware/Consume/MiddlewareDispatcherTest.php +++ b/tests/Unit/Middleware/Consume/MiddlewareDispatcherTest.php @@ -159,7 +159,7 @@ public function handleConsume(ConsumeRequest $request): ConsumeRequest } private function createDispatcher( - ContainerInterface $container = null, + ?ContainerInterface $container = null, ): ConsumeMiddlewareDispatcher { $container ??= $this->createContainer([AdapterInterface::class => new FakeAdapter()]); $callableFactory = new CallableFactory($container); diff --git a/tests/Unit/Middleware/Consume/MiddlewareFactoryTest.php b/tests/Unit/Middleware/Consume/MiddlewareFactoryTest.php index d61919cb..682bd175 100644 --- a/tests/Unit/Middleware/Consume/MiddlewareFactoryTest.php +++ b/tests/Unit/Middleware/Consume/MiddlewareFactoryTest.php @@ -167,7 +167,7 @@ public function testInvalidMiddlewareWithWrongController(): void ); } - private function getMiddlewareFactory(ContainerInterface $container = null): MiddlewareFactoryConsumeInterface + private function getMiddlewareFactory(?ContainerInterface $container = null): MiddlewareFactoryConsumeInterface { $container ??= $this->getContainer([AdapterInterface::class => new FakeAdapter()]); diff --git a/tests/Unit/Middleware/FailureHandling/MiddlewareDispatcherTest.php b/tests/Unit/Middleware/FailureHandling/MiddlewareDispatcherTest.php index fd566690..7bf1a141 100644 --- a/tests/Unit/Middleware/FailureHandling/MiddlewareDispatcherTest.php +++ b/tests/Unit/Middleware/FailureHandling/MiddlewareDispatcherTest.php @@ -157,7 +157,7 @@ public function handleFailure(FailureHandlingRequest $request): FailureHandlingR } private function createDispatcher( - ContainerInterface $container = null, + ?ContainerInterface $container = null, ): FailureMiddlewareDispatcher { $container ??= $this->createContainer([AdapterInterface::class => new FakeAdapter()]); $callableFactory = new CallableFactory($container); diff --git a/tests/Unit/Middleware/FailureHandling/MiddlewareFactoryTest.php b/tests/Unit/Middleware/FailureHandling/MiddlewareFactoryTest.php index 571ca037..445565d7 100644 --- a/tests/Unit/Middleware/FailureHandling/MiddlewareFactoryTest.php +++ b/tests/Unit/Middleware/FailureHandling/MiddlewareFactoryTest.php @@ -151,7 +151,7 @@ public function testInvalidMiddlewareWithWrongController(): void ); } - private function getMiddlewareFactory(ContainerInterface $container = null): MiddlewareFactoryFailureInterface + private function getMiddlewareFactory(?ContainerInterface $container = null): MiddlewareFactoryFailureInterface { $container ??= $this->getContainer([AdapterInterface::class => new FakeAdapter()]); diff --git a/tests/Unit/Middleware/Push/MiddlewareDispatcherTest.php b/tests/Unit/Middleware/Push/MiddlewareDispatcherTest.php index 713bab4a..b7ddebe6 100644 --- a/tests/Unit/Middleware/Push/MiddlewareDispatcherTest.php +++ b/tests/Unit/Middleware/Push/MiddlewareDispatcherTest.php @@ -167,7 +167,7 @@ public function handlePush(PushRequest $request): PushRequest } private function createDispatcher( - ContainerInterface $container = null, + ?ContainerInterface $container = null, ): PushMiddlewareDispatcher { $container ??= $this->createContainer([AdapterInterface::class => new FakeAdapter()]); $callableFactory = new CallableFactory($container); diff --git a/tests/Unit/Middleware/Push/MiddlewareFactoryTest.php b/tests/Unit/Middleware/Push/MiddlewareFactoryTest.php index c68bc6db..0b883149 100644 --- a/tests/Unit/Middleware/Push/MiddlewareFactoryTest.php +++ b/tests/Unit/Middleware/Push/MiddlewareFactoryTest.php @@ -142,7 +142,7 @@ public function testInvalidMiddlewareWithWrongController(): void ); } - private function getMiddlewareFactory(ContainerInterface $container = null): MiddlewareFactoryPushInterface + private function getMiddlewareFactory(?ContainerInterface $container = null): MiddlewareFactoryPushInterface { $container ??= $this->getContainer([AdapterInterface::class => new FakeAdapter()]);