1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 04:08:59 +01:00

Remove abstract static methods in PHP 5.6

This commit is contained in:
Daniil Gentili 2019-06-20 18:34:05 +02:00
parent 948cf8162e
commit dbba5a1583
2 changed files with 5 additions and 4 deletions

View File

@ -7,9 +7,6 @@ php:
before_install:
- echo "phar.readonly = 0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- sudo add-apt-repository ppa:ondrej/php -y
- sudo apt-get update -q
- sudo apt-get install php7.3-cli php7.3-json php7.3-mbstring php7.3-curl php7.3-xml php7.3-json -y
script:
- tests/makephar.sh

View File

@ -48,7 +48,11 @@ cp -a $madelinePath/src vendor/danog/madelineproto/
cd ..
[ $PHP_MAJOR_VERSION -eq 5 ] && {
composer global require spatie/7to5 dev-master#fdb11a2
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -q
sudo apt-get install php7.3-cli php7.3-json php7.3-mbstring php7.3-curl php7.3-xml php7.3-json -y
composer global require spatie/7to5 dev-master#5c65f68
[ -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