Skip to content

Commit 0068951

Browse files
committed
Remove some more PHP 5.3 $that artifacts
1 parent 99c3d88 commit 0068951

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Process.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,11 @@ public function start(LoopInterface $loop, $interval = 0.1)
110110
stream_set_blocking($pipe, 0);
111111
}
112112

113-
$self = $this;
114-
115-
$loop->addPeriodicTimer($interval, function(Timer $timer) use ($self) {
116-
if (!$self->isRunning()) {
117-
$self->close();
113+
$loop->addPeriodicTimer($interval, function (Timer $timer) {
114+
if (!$this->isRunning()) {
115+
$this->close();
118116
$timer->cancel();
119-
$self->emit('exit', array($self->getExitCode(), $self->getTermSignal()));
117+
$this->emit('exit', array($this->getExitCode(), $this->getTermSignal()));
120118
}
121119
});
122120
}

0 commit comments

Comments
 (0)