Skip to content

Commit

Permalink
PHP 8.2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sirn-se committed Oct 27, 2022
1 parent 420d882 commit 55dea37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,12 @@ public function testUnconnectedClient(): void
public function testDeprecated(): void
{
$client = new Client('ws://localhost:8000/my/mock/path');
(new ErrorHandler())->with(function () use ($client) {
(new ErrorHandler())->withAll(function () use ($client) {
$this->assertNull($client->getPier());
}, function (ErrorException $e) {
}, function ($exceptions, $result) {
$this->assertEquals(
'getPier() is deprecated and will be removed in future version. Use getRemoteName() instead.',
$e->getMessage()
$exceptions[0]->getMessage()
);
}, E_USER_DEPRECATED);
}
Expand Down
6 changes: 3 additions & 3 deletions tests/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,12 @@ public function testDeprecated(): void
MockSocket::initialize('server.construct', $this);
$server = new Server();
$this->assertTrue(MockSocket::isEmpty());
(new ErrorHandler())->with(function () use ($server) {
(new ErrorHandler())->withAll(function () use ($server) {
$this->assertNull($server->getPier());
}, function (ErrorException $e) {
}, function ($exceptions, $result) {
$this->assertEquals(
'getPier() is deprecated and will be removed in future version. Use getRemoteName() instead.',
$e->getMessage()
$exceptions[0]->getMessage()
);
}, E_USER_DEPRECATED);
}
Expand Down

0 comments on commit 55dea37

Please sign in to comment.