diff --git a/composer.json b/composer.json index 4e3850b6..d4038ba7 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "require": { "php": ">=5.6.0", "danog/phpstruct": "dev-fast", - "phpseclib/phpseclib": "dev-master", + "phpseclib/phpseclib": "dev-ige", "vlucas/phpdotenv": "^2.4", "krakjoe/pthreads-polyfill": "dev-master" }, diff --git a/tests/testing.php b/tests/testing.php index c0e097fe..ac4a46f2 100755 --- a/tests/testing.php +++ b/tests/testing.php @@ -17,8 +17,11 @@ if (file_exists('web_data.php')) { } echo 'Deserializing MadelineProto from session.madeline...'.PHP_EOL; -$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); - +$MadelineProto = false; +try { + $MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); +} catch (\danog\MadelineProto\Exception $e) { +} if (file_exists('.env')) { echo 'Loading .env...'.PHP_EOL; $dotenv = new Dotenv\Dotenv(getcwd());