Skip to content

Commit

Permalink
Fix tests for PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-novotny committed Feb 21, 2025
1 parent 91c763b commit 78b96dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
},
"require-dev": {
"ext-pcntl": "*",
"phpunit/phpunit": "^10.5",
"phpunit/phpunit": "^9.6 || ^10.5",
"phpstan/phpstan": "^2.1",
"react/child-process": "^0.6.5",
"wyrihaximus/react-phpunit-run-tests-in-fiber": "^2.0"
"wyrihaximus/react-phpunit-run-tests-in-fiber": "^1.0 || ^2.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 3 additions & 1 deletion test/Protocol/ProtocolWriterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public function test_appendFieldValue_canHandleDateTimeImmutable(): void
$protocolWriter->appendFieldValue($date, $buffer);
}

#[DataProvider('provider_appendFieldValue_canHandleInt64')]
/**
* @dataProvider provider_appendFieldValue_canHandleInt64
*/
public function test_appendFieldValue_canHandleInt64(int $value, bool $expectedInt64): void
{
$buffer = $this->createMock(Buffer::class);
Expand Down

0 comments on commit 78b96dc

Please sign in to comment.