mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 22:34:42 +01:00
Fixes for windows, added requirements+++
This commit is contained in:
parent
76fd51199e
commit
1858b7f8c8
@ -18,6 +18,7 @@
|
||||
"rollbar/rollbar": "dev-master",
|
||||
"ext-mbstring": "*",
|
||||
"ext-curl": "*",
|
||||
"ext-sockets": "*",
|
||||
"ext-xml": "*"
|
||||
|
||||
},
|
||||
|
@ -43,6 +43,7 @@ trait TL
|
||||
$class = null;
|
||||
$dparams = [];
|
||||
foreach ($tl_file as $line) {
|
||||
$line = rtrim($line);
|
||||
if (preg_match('|^//@|', $line)) {
|
||||
$list = explode(' @', str_replace('//', ' ', $line));
|
||||
foreach ($list as $elem) {
|
||||
@ -83,7 +84,7 @@ trait TL
|
||||
$type = 'constructors';
|
||||
continue;
|
||||
}
|
||||
if (preg_match('|^===\d*===$|', $line)) {
|
||||
if (preg_match('|^===\d*===|', $line)) {
|
||||
$layer = (int) preg_replace('|\D*|', '', $line);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user