From 3c1f1e4dccc764a208fb9b31459662bc1c1829ab Mon Sep 17 00:00:00 2001 From: Pavel Ivanov Date: Sun, 30 Dec 2018 22:01:03 +0200 Subject: [PATCH] Disabled deprecated warnings for PHP 7.3 tests (#16997) --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9e77a29..4233dc4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,6 +61,8 @@ addons: matrix: fast_finish: true include: + - php: 7.3 + - php: 7.2 # run tests coverage on PHP 7.1 @@ -204,7 +206,7 @@ before_script: # Disable DEPRECATE messages during PHPUnit initialization on PHP 7.2. To fix them, PHPUnit should be updated to 6.* # For Yii2 tests, messages will be enabled by tests/bootstrap.php - | - if [[ $TRAVIS_PHP_VERSION == 7.2 || $TRAVIS_PHP_VERSION = nightly ]]; then + if [[ $TRAVIS_PHP_VERSION == 7.2 || $TRAVIS_PHP_VERSION == 7.3 || $TRAVIS_PHP_VERSION = nightly ]]; then echo 'Disabled DEPRECATED notifications for PHP >= 7.2'; echo 'error_reporting = E_ALL & ~E_DEPRECATED' >> /tmp/php-config.ini; phpenv config-add /tmp/php-config.ini;