Require external php 7 polyfill

This commit is contained in:
Daniil Gentili 2019-06-18 14:39:31 +02:00
parent 4311ed872d
commit e74ff18d9f
2 changed files with 2 additions and 3 deletions

View File

@ -7,9 +7,6 @@ function callMe($allable, ...$args)
function returnMe($res) {
return $res;
}
if (!class_exists('\Throwable')) {
class Throwable extends \Exception {}
}
if (!function_exists('is_iterable')) {
function is_iterable($var) {
return is_array($var) || $var instanceof Traversable;

View File

@ -49,6 +49,8 @@ echo '{
}
]
}' > composer.json
composer config platform.php "7.4"
[ $PHP_MAJOR_VERSION -eq 5 ] && composer require dstuecken/php7ify
composer clearcache
composer update
cp -a $madelinePath/src vendor/danog/madelineproto/