Browse Source

Disabled deprecated warnings for PHP 7.3 tests (#16997)

tags/2.0.16
Pavel Ivanov 6 years ago committed by Alexander Makarov
parent
commit
3c1f1e4dcc
  1. 4
      .travis.yml

4
.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;

Loading…
Cancel
Save