language: php

php:
    - 7.2
    - 7.3
    - 7.4
    - 8.0

# run build against nightly but allow them to fail
matrix:
    fast_finish: true
    # allow_failures:
    # only one build will send the coverage, this'll speed up other one
    # include:

# faster builds on new travis setup not using sudo
sudo: false

# cache vendor dirs
cache:
    directories:
        - vendor
        - $HOME/.composer/cache

before_install:
    - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
    - composer self-update

install:
    - composer install --no-interaction --prefer-dist -o

script:
    - vendor/bin/phpunit

after_script:
    - if [[ "$PHPUNIT_FLAGS" != "" ]]; then php vendor/bin/coveralls -v; fi;

language: php

php:
    - 7.2
    - 7.3
    - 7.4.22
    - 8.0

# run build against nightly but allow them to fail
matrix:
    fast_finish: true
    # allow_failures:
    # only one build will send the coverage, this'll speed up other one
    # include:

# faster builds on new travis setup not using sudo
sudo: false

# cache vendor dirs
cache:
    directories:
        - vendor
        - $HOME/.composer/cache

before_install:
    - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
    - composer self-update

install:
    - composer install --no-interaction --prefer-dist -o

script:
    - vendor/bin/phpunit

after_script:
    - if [[ "$PHPUNIT_FLAGS" != "" ]]; then php vendor/bin/coveralls -v; fi;

Set PHP version to 7.4.22 in TravisCI file.
Set PHP version to 7.4.22 in TravisCI file.

It's a workaround for PHP7.4 failing to build on TravisCI.
