Skip to content

Commit 0b72669

Browse files
Run tests on PHP 8.4 (#240)
* Run tests on PHP 8.4 * Upgrade Psalm version * Fix Psalm version * Set infection version explicitly * Set infection version explicitly * Set infection version explicitly * Fix implicitly nullable type * Fix implicit nullable type * Fix implicit nullable type
1 parent 2732619 commit 0b72669

13 files changed

+14
-13
lines changed

Diff for: .github/workflows/bechmark.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
os: >-
3232
['ubuntu-latest', 'windows-latest']
3333
php: >-
34-
['8.1', '8.2', '8.3']
34+
['8.1', '8.2', '8.3', '8.4']

Diff for: .github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
os: >-
3333
['ubuntu-latest']
3434
php: >-
35-
['8.1', '8.2', '8.3']
35+
['8.1', '8.2', '8.3', '8.4']

Diff for: .github/workflows/composer-require-checker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
os: >-
3232
['ubuntu-latest']
3333
php: >-
34-
['8.1', '8.2', '8.3']
34+
['8.1', '8.2', '8.3', '8.4']

Diff for: .github/workflows/mutation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
os: >-
2828
['ubuntu-latest']
2929
php: >-
30-
['8.3']
30+
['8.4']
3131
secrets:
3232
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

Diff for: .github/workflows/rector.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
os: >-
2222
['ubuntu-latest']
2323
php: >-
24-
['8.3']
24+
['8.4']

Diff for: .github/workflows/static.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
os: >-
3030
['ubuntu-latest']
3131
php: >-
32-
['8.1', '8.2', '8.3']
32+
['8.1', '8.2', '8.3', '8.4']

Diff for: composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@
5151
"phpunit/phpunit": "^10.5",
5252
"rector/rector": "^2.0",
5353
"roave/infection-static-analysis-plugin": "^1.34",
54+
"infection/infection": "^0.27.8||^0.29.0",
5455
"spatie/phpunit-watcher": "^1.23",
55-
"vimeo/psalm": "^5.20",
56+
"vimeo/psalm": "^5.20||^6.0",
5657
"yiisoft/test-support": "^3.0",
5758
"yiisoft/yii-debug": "dev-master"
5859
},

Diff for: tests/Unit/Middleware/Consume/MiddlewareDispatcherTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function handleConsume(ConsumeRequest $request): ConsumeRequest
159159
}
160160

161161
private function createDispatcher(
162-
ContainerInterface $container = null,
162+
?ContainerInterface $container = null,
163163
): ConsumeMiddlewareDispatcher {
164164
$container ??= $this->createContainer([AdapterInterface::class => new FakeAdapter()]);
165165
$callableFactory = new CallableFactory($container);

Diff for: tests/Unit/Middleware/Consume/MiddlewareFactoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function testInvalidMiddlewareWithWrongController(): void
167167
);
168168
}
169169

170-
private function getMiddlewareFactory(ContainerInterface $container = null): MiddlewareFactoryConsumeInterface
170+
private function getMiddlewareFactory(?ContainerInterface $container = null): MiddlewareFactoryConsumeInterface
171171
{
172172
$container ??= $this->getContainer([AdapterInterface::class => new FakeAdapter()]);
173173

Diff for: tests/Unit/Middleware/FailureHandling/MiddlewareDispatcherTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function handleFailure(FailureHandlingRequest $request): FailureHandlingR
157157
}
158158

159159
private function createDispatcher(
160-
ContainerInterface $container = null,
160+
?ContainerInterface $container = null,
161161
): FailureMiddlewareDispatcher {
162162
$container ??= $this->createContainer([AdapterInterface::class => new FakeAdapter()]);
163163
$callableFactory = new CallableFactory($container);

Diff for: tests/Unit/Middleware/FailureHandling/MiddlewareFactoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function testInvalidMiddlewareWithWrongController(): void
151151
);
152152
}
153153

154-
private function getMiddlewareFactory(ContainerInterface $container = null): MiddlewareFactoryFailureInterface
154+
private function getMiddlewareFactory(?ContainerInterface $container = null): MiddlewareFactoryFailureInterface
155155
{
156156
$container ??= $this->getContainer([AdapterInterface::class => new FakeAdapter()]);
157157

Diff for: tests/Unit/Middleware/Push/MiddlewareDispatcherTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function handlePush(PushRequest $request): PushRequest
167167
}
168168

169169
private function createDispatcher(
170-
ContainerInterface $container = null,
170+
?ContainerInterface $container = null,
171171
): PushMiddlewareDispatcher {
172172
$container ??= $this->createContainer([AdapterInterface::class => new FakeAdapter()]);
173173
$callableFactory = new CallableFactory($container);

Diff for: tests/Unit/Middleware/Push/MiddlewareFactoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function testInvalidMiddlewareWithWrongController(): void
142142
);
143143
}
144144

145-
private function getMiddlewareFactory(ContainerInterface $container = null): MiddlewareFactoryPushInterface
145+
private function getMiddlewareFactory(?ContainerInterface $container = null): MiddlewareFactoryPushInterface
146146
{
147147
$container ??= $this->getContainer([AdapterInterface::class => new FakeAdapter()]);
148148

0 commit comments

Comments
 (0)