From dbba5a1583ca0860f90ee8de3f44145b502b372b Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 20 Jun 2019 18:34:05 +0200 Subject: [PATCH] Remove abstract static methods in PHP 5.6 --- .travis.yml | 3 --- tests/makephar.sh | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c7906be1..2a9ec77f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/makephar.sh b/tests/makephar.sh index 060c317d..1b8bd0f5 100755 --- a/tests/makephar.sh +++ b/tests/makephar.sh @@ -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