Require external php 7 polyfill
This commit is contained in:
parent
4311ed872d
commit
e74ff18d9f
@ -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;
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user