diff --git a/.github/actions/ci/action.yml b/.github/actions/ci/action.yml index a8f8b90..6019f27 100644 --- a/.github/actions/ci/action.yml +++ b/.github/actions/ci/action.yml @@ -4,7 +4,7 @@ inputs: php-version: description: 'Which version of PHP should we setup?' required: false - default: 8.1 + default: "8.2" token: description: 'Token used to prevent composer rate limiting' required: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2eb3419..7376f63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: - php-versions: [8.1, 8.2, 8.3] + php-version: ["8.2", "8.3", "8.4"] steps: - uses: actions/checkout@v4 @@ -30,7 +30,7 @@ jobs: strategy: matrix: - php-version: [8.1.26, 8.2.19, 8.3.8] + php-version: ["8.2", "8.3", "8.4"] env: LD_INCLUDE_INTEGRATION_TESTS: 1 @@ -38,11 +38,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install php support - run: choco install -y php --version=${{ matrix.php-version }} --force - - - name: Install composer - run: choco install -y composer + - name: Setup PHP + uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2 + with: + php-version: ${{ matrix.php-version }} # Installation must prefer source as the current open-feature/php-sdk # includes a symlink which 7z does not want to unzip. Once this is diff --git a/README.md b/README.md index 6ea27cc..9550bab 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This provider is designed primarily for use in multi-user systems such as web se ## Supported PHP versions -This version of the LaunchDarkly provider works with PHP 8.1 and above. +This version of the LaunchDarkly provider works with PHP 8.2 and above. ## Feature matrix @@ -49,7 +49,7 @@ Example composer dependencies: ```json { "require": { - "php": ">=8.1", + "php": ">=8.2", "launchdarkly/openfeature-server": "^1.0" } } diff --git a/composer.json b/composer.json index 54c7342..c035244 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } ], "require": { - "php": ">=8.1", + "php": ">=8.2", "guzzlehttp/guzzle": "^7", "launchdarkly/server-sdk": "^6.2", "myclabs/php-enum": ">1.8",