Skip to content

Commit 4556af2

Browse files
authored
feat(deps): Require PHP 8.1+ (#16)
PHP 8.0 has been EOL since November 2023 so we are dropping support prior to our v1 release.
1 parent 597dbbc commit 4556af2

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/actions/ci/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
php-version:
55
description: 'Which version of PHP should we setup?'
66
required: false
7-
default: 8.0
7+
default: 8.1
88
token:
99
description: 'Token used to prevent composer rate limiting'
1010
required: true

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
php-versions: [8.0, 8.1]
18+
php-versions: [8.1, 8.2, 8.3]
1919

2020
steps:
2121
- uses: actions/checkout@v4
@@ -32,7 +32,7 @@ jobs:
3232

3333
strategy:
3434
matrix:
35-
php-version: [8.0.30, 8.1.26]
35+
php-version: [8.1.26, 8.2.19, 8.3.8]
3636

3737
env:
3838
LD_INCLUDE_INTEGRATION_TESTS: 1

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This provider is designed primarily for use in multi-user systems such as web se
2222

2323
## Supported PHP versions
2424

25-
This version of the LaunchDarkly provider works with PHP 8.0 and above.
25+
This version of the LaunchDarkly provider works with PHP 8.1 and above.
2626

2727
## Getting started
2828

@@ -33,7 +33,7 @@ Example composer dependencies:
3333
```json
3434
{
3535
"require": {
36-
"php": ">=8.0",
36+
"php": ">=8.1",
3737
"launchdarkly/openfeature-server": "^1.0"
3838
}
3939
}
@@ -46,8 +46,7 @@ use OpenFeature\OpenFeatureAPI;
4646
use OpenFeature\implementation\flags\Attributes;
4747
use OpenFeature\implementation\flags\EvaluationContext;
4848

49-
$ldClient = new LaunchDarkly\LDClient("my-sdk-key");
50-
$provider = new LaunchDarkly\OpenFeature\Provider($ldClient);
49+
$provider = new LaunchDarkly\OpenFeature\Provider("my-sdk-key");
5150

5251
$api = OpenFeatureAPI::getInstance();
5352
$api->setProvider($provider);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"require": {
23-
"php": ">=8.0",
23+
"php": ">=8.1",
2424
"guzzlehttp/guzzle": "^7",
2525
"launchdarkly/server-sdk": "^6.2",
2626
"myclabs/php-enum": ">1.8",

0 commit comments

Comments
 (0)