revert "Release HEAD - Update secret schema"

This reverts commit 7073062692.
This commit is contained in:
Daniil Gentili 2022-10-08 18:52:19 +02:00
parent 7073062692
commit c9247e6be9
7 changed files with 10 additions and 10 deletions

View File

@ -3,11 +3,11 @@
namespace danog\MadelineProto; namespace danog\MadelineProto;
if (\defined('MADELINE_PHP')) { if (\defined('MADELINE_PHP')) {
throw new \Exception('Please do not include madeline.php twice, use require_once \'madeline.php\';!'); throw new \Exception('Please do not include madeline.php twice!');
} }
if (!\defined('MADELINE_ALLOW_COMPOSER') && \class_exists(\Composer\Autoload\ClassLoader::class)) { if (!\defined('MADELINE_ALLOW_COMPOSER') && \class_exists(\Composer\Autoload\ClassLoader::class)) {
throw new \Exception('Composer autoloader detected: madeline.php is incompatible with Composer, please require \'danog/madelineproto:^7\' using composer.'); throw new \Exception('Composer autoloader detected: madeline.php is incompatible with Composer, please require MadelineProto using composer.');
} }
\define('MADELINE_PHP', __FILE__); \define('MADELINE_PHP', __FILE__);
@ -41,10 +41,10 @@ class Installer
public function __construct() public function __construct()
{ {
if ((PHP_MAJOR_VERSION === 7 && PHP_MINOR_VERSION < 1) || PHP_MAJOR_VERSION < 7) { if ((PHP_MAJOR_VERSION === 7 && PHP_MINOR_VERSION < 1) || PHP_MAJOR_VERSION < 7) {
throw new \Exception('MadelineProto requires at least PHP 7.1 to run, PHP 8.1+ is recommended.'); throw new \Exception('MadelineProto requires at least PHP 7.1 to run');
} }
if (PHP_INT_SIZE < 8) { if (PHP_INT_SIZE < 8) {
throw new \Exception('A 64-bit build of PHP is required to run MadelineProto, PHP 8.1+ recommended.'); throw new \Exception('A 64-bit build of PHP is required to run MadelineProto, PHP 8.0+ recommended.');
} }
$backtrace = \debug_backtrace(0); $backtrace = \debug_backtrace(0);
if (\count($backtrace) === 1) { if (\count($backtrace) === 1) {

View File

@ -1 +1 @@
0a37281fb5a672dd4d0ec5f74f56c724ba7d20e0-71 fcded0a0eb4189883b99a0dedf34112e49e539e3-71

View File

@ -1 +1 @@
0a37281fb5a672dd4d0ec5f74f56c724ba7d20e0-72 fcded0a0eb4189883b99a0dedf34112e49e539e3-72

View File

@ -1 +1 @@
0a37281fb5a672dd4d0ec5f74f56c724ba7d20e0-73 fcded0a0eb4189883b99a0dedf34112e49e539e3-73

View File

@ -1 +1 @@
0a37281fb5a672dd4d0ec5f74f56c724ba7d20e0-74 fcded0a0eb4189883b99a0dedf34112e49e539e3-74

View File

@ -1 +1 @@
0a37281fb5a672dd4d0ec5f74f56c724ba7d20e0-80 fcded0a0eb4189883b99a0dedf34112e49e539e3-80

View File

@ -1 +1 @@
0a37281fb5a672dd4d0ec5f74f56c724ba7d20e0-81 fcded0a0eb4189883b99a0dedf34112e49e539e3-81