Conversion bugfixes
This commit is contained in:
parent
282d0b1655
commit
3f03a7b21a
@ -900,6 +900,7 @@ class MTProto extends AsyncConstruct implements TLCallback
|
|||||||
// Connects to all datacenters and if necessary creates authorization keys, binds them and writes client info
|
// Connects to all datacenters and if necessary creates authorization keys, binds them and writes client info
|
||||||
public function connect_to_all_dcs_async(): \Generator
|
public function connect_to_all_dcs_async(): \Generator
|
||||||
{
|
{
|
||||||
|
$this->channels_state->get(false);
|
||||||
foreach ($this->channels_state->get() as $state) {
|
foreach ($this->channels_state->get() as $state) {
|
||||||
$channelId = $state->getChannel();
|
$channelId = $state->getChannel();
|
||||||
if (!isset($this->feeders[$channelId])) {
|
if (!isset($this->feeders[$channelId])) {
|
||||||
|
@ -5,7 +5,7 @@ PHP_MAJOR_VERSION=$(php -r 'echo PHP_MAJOR_VERSION;')
|
|||||||
PHP_MINOR_VERSION=$(php -r 'echo PHP_MINOR_VERSION;')
|
PHP_MINOR_VERSION=$(php -r 'echo PHP_MINOR_VERSION;')
|
||||||
|
|
||||||
# Download converters
|
# Download converters
|
||||||
composer global require spatie/7to5 dev-master#80de80c7ebb0dd0805a79e939b0426883ffd9403
|
composer global require spatie/7to5 dev-master#e03b18903c45b01546c2984cc3c54e4750c71e3a
|
||||||
[ -f $HOME/.composer/vendor/bin/php7to5 ] && php7to5=$HOME/.composer/vendor/bin/php7to5
|
[ -f $HOME/.composer/vendor/bin/php7to5 ] && php7to5=$HOME/.composer/vendor/bin/php7to5
|
||||||
[ -f $HOME/.config/composer/vendor/bin/php7to5 ] && php7to5=$HOME/.config/composer/vendor/bin/php7to5
|
[ -f $HOME/.config/composer/vendor/bin/php7to5 ] && php7to5=$HOME/.config/composer/vendor/bin/php7to5
|
||||||
|
|
||||||
@ -88,6 +88,9 @@ cd ..
|
|||||||
|
|
||||||
find phar5 -type f -exec sed 's/\w* \.\.\./.../' -i {} +
|
find phar5 -type f -exec sed 's/\w* \.\.\./.../' -i {} +
|
||||||
|
|
||||||
|
# Make sure conversion worked
|
||||||
|
for f in $(find . -type f -name '*.php'); do php -l $f | grep -v 'No syntax errors';done
|
||||||
|
|
||||||
#[ "$TRAVIS_BRANCH" != "master" ] && branch="-$TRAVIS_BRANCH" || branch=""
|
#[ "$TRAVIS_BRANCH" != "master" ] && branch="-$TRAVIS_BRANCH" || branch=""
|
||||||
branch="-$TRAVIS_BRANCH"
|
branch="-$TRAVIS_BRANCH"
|
||||||
cd $madelinePath
|
cd $madelinePath
|
||||||
|
Loading…
Reference in New Issue
Block a user