Skip to content

Commit 266cde6

Browse files
committed
Fix doc block for callback arg
1 parent c96b806 commit 266cde6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
File renamed without changes.

src/Topic/ConnectionPeriodicTimer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function getTid(string $name): string
4040

4141
/**
4242
* @param int|float $timeout
43-
* @param mixed $callback
43+
* @param callable $callback
4444
*/
4545
public function addPeriodicTimer(string $name, $timeout, $callback): void
4646
{
@@ -52,12 +52,12 @@ public function isPeriodicTimerActive(string $name): bool
5252
return isset($this->registry[$this->getTid($name)]);
5353
}
5454

55-
public function cancelPeriodicTimer(string $tidOrname): void
55+
public function cancelPeriodicTimer(string $tidOrName): void
5656
{
57-
if (!isset($this->registry[$tidOrname])) {
58-
$tid = $this->getTid($tidOrname);
57+
if (!isset($this->registry[$tidOrName])) {
58+
$tid = $this->getTid($tidOrName);
5959
} else {
60-
$tid = $tidOrname;
60+
$tid = $tidOrName;
6161
}
6262

6363
$timer = $this->registry[$tid];

0 commit comments

Comments
 (0)