From c139e2534fe7530eaf3d60535d9dfe2d13259d47 Mon Sep 17 00:00:00 2001 From: Matthew Keeler Date: Tue, 11 Jun 2024 10:24:51 -0400 Subject: [PATCH] feat(deps): Require PHP 8.1+ PHP 8.0 has been EOL since November 2023 so we are dropping support prior to our v1 release. --- .github/actions/ci/action.yml | 2 +- .github/workflows/ci.yml | 4 ++-- README.md | 7 +++---- composer.json | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/actions/ci/action.yml b/.github/actions/ci/action.yml index 0072b31..a8f8b90 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.0 + default: 8.1 token: description: 'Token used to prevent composer rate limiting' required: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa71caa..1644386 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: - php-versions: [8.0, 8.1] + php-versions: [8.1, 8.2, 8.3] steps: - uses: actions/checkout@v4 @@ -32,7 +32,7 @@ jobs: strategy: matrix: - php-version: [8.0.30, 8.1.26] + php-version: [8.1.26, 8.2.19, 8.3.8] env: LD_INCLUDE_INTEGRATION_TESTS: 1 diff --git a/README.md b/README.md index 7fdcc37..e53e146 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,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.0 and above. +This version of the LaunchDarkly provider works with PHP 8.1 and above. ## Getting started @@ -33,7 +33,7 @@ Example composer dependencies: ```json { "require": { - "php": ">=8.0", + "php": ">=8.1", "launchdarkly/openfeature-server": "^1.0" } } @@ -46,8 +46,7 @@ use OpenFeature\OpenFeatureAPI; use OpenFeature\implementation\flags\Attributes; use OpenFeature\implementation\flags\EvaluationContext; -$ldClient = new LaunchDarkly\LDClient("my-sdk-key"); -$provider = new LaunchDarkly\OpenFeature\Provider($ldClient); +$provider = new LaunchDarkly\OpenFeature\Provider("my-sdk-key"); $api = OpenFeatureAPI::getInstance(); $api->setProvider($provider); diff --git a/composer.json b/composer.json index 72a1c18..54c7342 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } ], "require": { - "php": ">=8.0", + "php": ">=8.1", "guzzlehttp/guzzle": "^7", "launchdarkly/server-sdk": "^6.2", "myclabs/php-enum": ">1.8",