Skip to content

Commit 6da6647

Browse files
committed
Renaming $self to unintuitive var name for consistency
1 parent 0c49e19 commit 6da6647

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

LibEventLoop.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ protected function addTimerInternal($interval, $callback, $periodic = false)
173173
$timer->signature = spl_object_hash($timer);
174174
$timersGc = $this->timersGc;
175175

176-
$self = $this;
177-
$callback = function () use ($timer, $timersGc, $self) {
176+
$that = $this;
177+
$callback = function () use ($timer, $timersGc, $that) {
178178
foreach ($timersGc as $resource) {
179179
event_free($resource);
180180
}
@@ -185,7 +185,7 @@ protected function addTimerInternal($interval, $callback, $periodic = false)
185185
if ($timer->periodic === true) {
186186
event_add($timer->resource, $timer->interval);
187187
} else {
188-
$self->cancelTimer($timer->signature);
188+
$that->cancelTimer($timer->signature);
189189
}
190190
}
191191
};

0 commit comments

Comments
 (0)