More fixes

This commit is contained in:
Daniil Gentili 2020-03-08 17:36:29 +01:00
parent 0a467beb53
commit ce0e12c747
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
4 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -39,7 +39,7 @@ interface ResumableLoopInterface extends LoopInterface
/**
* Resume the loop.
*
* @return void
* @return ?Promise
*/
public function resume(): void;
public function resume();
}