diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e007c7..2a608f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,7 @@ jobs: with: tools: flex php-version: "${{ matrix.php-version }}" + extensions: redis-5.3.7 coverage: "${{ matrix.coverage }}" - name: "Install dependencies" diff --git a/Dockerfile b/Dockerfile index 929484d..1ecaf3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ ARG PHP_IMAGE_TAG FROM php:${PHP_IMAGE_TAG}-cli-alpine RUN apk add autoconf gcc g++ make -RUN pecl install redis && docker-php-ext-enable redis +RUN pecl install redis-5.3.7 && docker-php-ext-enable redis COPY --from=composer:latest /usr/bin/composer /usr/bin/composer diff --git a/tests/Cache/RedisTest.php b/tests/Cache/RedisTest.php new file mode 100644 index 0000000..0659712 --- /dev/null +++ b/tests/Cache/RedisTest.php @@ -0,0 +1,21 @@ += 6.0.0 requires typed properties in methods + */ + public function testInit(): void + { + $redis = new Redis(); + } +}