Skip to content

Commit

Permalink
Fix implicitly nullable parameter for PHP 8.4 compatibility (#24)
Browse files Browse the repository at this point in the history
* Fix implicitly nullable parameter
* Run tests on newest PHP versions
  • Loading branch information
GromNaN authored Sep 19, 2024
1 parent be64a52 commit 0301d68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ jobs:
- operating-system: 'ubuntu-latest'
php-version: '8.1'

- operating-system: 'ubuntu-latest'
php-version: '8.2'

- operating-system: 'ubuntu-latest'
php-version: '8.3'

- operating-system: 'ubuntu-latest'
php-version: '8.4'

- operating-system: 'windows-latest'
php-version: '8.1'
job-description: 'on Windows'
Expand Down
2 changes: 1 addition & 1 deletion src/AsyncTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ final protected function setTimeout(int $timeout)
*
* @return callable|MockObject Mock object having only an __invoke method.
*/
final protected function createCallback(int $invocationCount, callable $returnCallback = null): callable
final protected function createCallback(int $invocationCount, ?callable $returnCallback = null): callable
{
$mock = $this->createMock(CallbackStub::class);
$invocationMocker = $mock->expects($this->exactly($invocationCount))
Expand Down

0 comments on commit 0301d68

Please sign in to comment.