Skip to content

Commit 0301d68

Browse files
authored
Fix implicitly nullable parameter for PHP 8.4 compatibility (#24)
* Fix implicitly nullable parameter * Run tests on newest PHP versions
1 parent be64a52 commit 0301d68

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ jobs:
2727
- operating-system: 'ubuntu-latest'
2828
php-version: '8.1'
2929

30+
- operating-system: 'ubuntu-latest'
31+
php-version: '8.2'
32+
33+
- operating-system: 'ubuntu-latest'
34+
php-version: '8.3'
35+
36+
- operating-system: 'ubuntu-latest'
37+
php-version: '8.4'
38+
3039
- operating-system: 'windows-latest'
3140
php-version: '8.1'
3241
job-description: 'on Windows'

src/AsyncTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ final protected function setTimeout(int $timeout)
241241
*
242242
* @return callable|MockObject Mock object having only an __invoke method.
243243
*/
244-
final protected function createCallback(int $invocationCount, callable $returnCallback = null): callable
244+
final protected function createCallback(int $invocationCount, ?callable $returnCallback = null): callable
245245
{
246246
$mock = $this->createMock(CallbackStub::class);
247247
$invocationMocker = $mock->expects($this->exactly($invocationCount))

0 commit comments

Comments
 (0)