version: 2
jobs:
  build:
    docker:
      - image: circleci/php:7.2-cli

    steps:
      - checkout

      # Download and cache dependencies
      - restore_cache:
          keys:
            - v1-dependencies-{{ checksum "composer.lock" }}
            - v1-dependencies- # fallback
      - run: composer install -n --prefer-dist
      - save_cache:
          key: v1-dependencies-{{ checksum "composer.lock" }}
          paths:
            - ./vendor

      # Run unit tests
      - run: composer test

version: 2
jobs:
  build:
    docker:
      - image: circleci/php:7.4-cli

    steps:
      - checkout

      # Download and cache dependencies
      - restore_cache:
          keys:
            - v1-dependencies-{{ checksum "composer.lock" }}
            - v1-dependencies- # fallback
      - run: composer install -n --prefer-dist
      - save_cache:
          key: v1-dependencies-{{ checksum "composer.lock" }}
          paths:
            - ./vendor

      # Run unit tests
      - run: composer test

Use PHP 7.4 in pipeline
Use PHP 7.4 in pipeline
