From d7306ab7135281d2303cc166784c44d96b427d33 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 24 Sep 2019 12:40:48 +0200 Subject: [PATCH] Temporarily disable intl --- docs | 2 +- src/danog/MadelineProto/Coroutine.php | 1 - src/danog/MadelineProto/InternalDoc.php | 2 +- src/danog/MadelineProto/MTProto.php | 2 +- src/danog/MadelineProto/Magic.php | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs b/docs index fe3462587..0fc9b14f8 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit fe346258733323e5173e674f15059dea1a1eb880 +Subproject commit 0fc9b14f85e87ca38c3ce01ba6e4a43aaa3707f4 diff --git a/src/danog/MadelineProto/Coroutine.php b/src/danog/MadelineProto/Coroutine.php index a82de6ec7..1cf2f8631 100644 --- a/src/danog/MadelineProto/Coroutine.php +++ b/src/danog/MadelineProto/Coroutine.php @@ -29,7 +29,6 @@ namespace danog\MadelineProto; -use Amp\Deferred; use Amp\Failure; use Amp\Internal; use Amp\Promise; diff --git a/src/danog/MadelineProto/InternalDoc.php b/src/danog/MadelineProto/InternalDoc.php index 7a1b45370..71e756237 100644 --- a/src/danog/MadelineProto/InternalDoc.php +++ b/src/danog/MadelineProto/InternalDoc.php @@ -4048,7 +4048,7 @@ class InternalDoc extends APIFactory return $this->__call(__FUNCTION__, [$url, $extra]); } - public function a(callable $a, ?string $b = null, $c = null, $d = 2, $e = \danog\MadelineProto\MTProto::METHOD_BEFORE_CALLBACK, array $extra = []): ?string + public function testing(callable $a, ?string $b = null, $c = null, $d = 2, $e = \danog\MadelineProto\MTProto::METHOD_BEFORE_CALLBACK, array $extra = []): ?string { return $this->__call(__FUNCTION__, [$a, $b, $c, $d, $e, $extra]); } diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 7a74f4e5b..a7c414368 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -550,7 +550,7 @@ class MTProto extends AsyncConstruct implements TLCallback { return $this->datacenter->fileGetContents($url); } - public function a(callable $a, ?string $b = null, $c = null, $d = 2, $e = self::METHOD_BEFORE_CALLBACK): ?string + public function testing(callable $a, ?string $b = null, $c = null, $d = 2, $e = self::METHOD_BEFORE_CALLBACK): ?string { } /** diff --git a/src/danog/MadelineProto/Magic.php b/src/danog/MadelineProto/Magic.php index 645b18d42..0faa7ad20 100644 --- a/src/danog/MadelineProto/Magic.php +++ b/src/danog/MadelineProto/Magic.php @@ -81,7 +81,7 @@ class Magic if (!\defined('\\phpseclib\\Crypt\\Common\\SymmetricKey::MODE_IGE') || \phpseclib\Crypt\Common\SymmetricKey::MODE_IGE !== 7) { throw new Exception(\danog\MadelineProto\Lang::$current_lang['phpseclib_fork']); } - foreach (['intl', 'xml', 'fileinfo', 'json', 'mbstring'] as $extension) { + foreach (['xml', 'fileinfo', 'json', 'mbstring'] as $extension) { if (!\extension_loaded($extension)) { throw Exception::extension($extension); }