More fixes
This commit is contained in:
parent
0a467beb53
commit
ce0e12c747
@ -30,7 +30,6 @@ use Amp\Http\Client\Cookie\CookieInterceptor;
|
||||
use Amp\Http\Client\Cookie\CookieJar;
|
||||
use Amp\Http\Client\Cookie\InMemoryCookieJar;
|
||||
use Amp\Http\Client\HttpClient;
|
||||
use Amp\Http\Client\HttpClient;
|
||||
use Amp\Http\Client\HttpClientBuilder;
|
||||
use Amp\Http\Client\Request;
|
||||
use Amp\Socket\ConnectContext;
|
||||
|
@ -58,7 +58,7 @@ abstract class ResumableSignalLoop extends SignalLoop implements ResumableLoopIn
|
||||
}
|
||||
return $this->resume->promise();
|
||||
}
|
||||
public function resume($watcherId = null, $expected = 0): void
|
||||
public function resume($watcherId = null, $expected = 0)
|
||||
{
|
||||
if ($this->resumeWatcher) {
|
||||
$storedWatcherId = $this->resumeWatcher;
|
||||
|
@ -32,7 +32,7 @@ use danog\MadelineProto\Loop\SignalLoopInterface;
|
||||
abstract class SignalLoop extends Loop implements SignalLoopInterface
|
||||
{
|
||||
private $signalDeferred;
|
||||
public function signal($what)
|
||||
public function signal($what): void
|
||||
{
|
||||
if ($this->signalDeferred) {
|
||||
$deferred = $this->signalDeferred;
|
||||
|
@ -39,7 +39,7 @@ interface ResumableLoopInterface extends LoopInterface
|
||||
/**
|
||||
* Resume the loop.
|
||||
*
|
||||
* @return void
|
||||
* @return ?Promise
|
||||
*/
|
||||
public function resume(): void;
|
||||
public function resume();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user