Skip to content

Commit f03c0cc

Browse files
committed
Stop implementing ResetInterface
1 parent 899e72f commit f03c0cc

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

src/PeriodicManager/PingDoctrineDBALConnectionsPeriodicManager.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
use Psr\Log\LoggerAwareTrait;
99
use React\EventLoop\LoopInterface;
1010
use React\EventLoop\TimerInterface;
11-
use Symfony\Contracts\Service\ResetInterface;
1211

13-
final class PingDoctrineDBALConnectionsPeriodicManager implements PeriodicManager, LoggerAwareInterface, ResetInterface
12+
final class PingDoctrineDBALConnectionsPeriodicManager implements PeriodicManager, LoggerAwareInterface
1413
{
1514
use LoggerAwareTrait;
1615

@@ -47,14 +46,6 @@ public function register(LoopInterface $loop): void
4746
}
4847

4948
public function cancelTimers(): void
50-
{
51-
$this->reset();
52-
}
53-
54-
/**
55-
* @internal
56-
*/
57-
public function reset(): void
5849
{
5950
if (!$this->timer instanceof TimerInterface) {
6051
return;

tests/PeriodicManager/PingDoctrineDBALConnectionsPeriodicManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function setUp(): void
3838

3939
protected function tearDown(): void
4040
{
41-
$this->manager->reset();
41+
$this->manager->cancelTimers();
4242

4343
parent::tearDown();
4444
}

0 commit comments

Comments
 (0)