diff --git a/.travis.yml b/.travis.yml index 71ae716d..04544ff4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,10 @@ php: - '7.0' - '5.6' -allow_failures: -- php: '5.6' + +jobs: + allow_failures: + - php: '5.6' before_install: - echo "phar.readonly = 0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini diff --git a/docs b/docs index 76640a01..757d12fb 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 76640a01adf8bfc39e2cc4e3fd2dd586af47c359 +Subproject commit 757d12fbdda97d22a20d565be8e0aea64ed34cad diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 9ab7fca3..d2fa0be2 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -815,7 +815,7 @@ class TL !\is_array($arguments[$current_argument['name']]) || !( isset($arguments[$current_argument['name']]['_']) - && $this->constructors->findByPredicate($arguments[$current_argument['name']]['_']) === 'InputFile' + && $this->constructors->findByPredicate($arguments[$current_argument['name']]['_'])['type'] === 'InputFile' ) ) && $this->API->settings['upload']['allow_automatic_upload'] diff --git a/src/polyfill.php b/src/polyfill.php index 48207388..fe8db311 100644 --- a/src/polyfill.php +++ b/src/polyfill.php @@ -10,7 +10,7 @@ function returnMe($res) } function __coalesce($ifNotNull, $then) { - return $ifNotNull ? $ifNotNull : $then; + return $ifNotNull ?: $then; } function __destructure($list, $value) {