Skip to content

Commit 93a8399

Browse files
authored
Merge branch 'main' into event-publisher-resiliency
2 parents e5d53f1 + 8fc6f4b commit 93a8399

File tree

10 files changed

+28
-15
lines changed

10 files changed

+28
-15
lines changed

.github/actions/build-docs/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ runs:
1717
--ignore-tags psalm-return \
1818
--visibility public \
1919
--defaultpackagename "LaunchDarkly" \
20-
--title "LaunchDarkly PHP SDK 6.4.0" # x-release-please-version
20+
--title "LaunchDarkly PHP SDK 6.5.1" # x-release-please-version

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
strategy:
4646
matrix:
47-
php-version: [8.1.26, 8.2.13]
47+
php-version: ['8.1', '8.2']
4848

4949
env:
5050
LD_INCLUDE_INTEGRATION_TESTS: 1
@@ -54,15 +54,14 @@ jobs:
5454
with:
5555
fetch-depth: 0 # If you only need the current version keep this.
5656

57+
- name: Setup PHP
58+
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35
59+
with:
60+
php-version: ${{ matrix.php-version }}
61+
5762
- name: Install java support
5863
run: choco install -y javaruntime
5964

60-
- name: Install php support
61-
run: choco install -y php --version=${{ matrix.php-version }} --force
62-
63-
- name: Install composer
64-
run: choco install -y composer
65-
6665
- name: Download wiremock
6766
run: Invoke-WebRequest -Uri https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-jre8-standalone/2.31.0/wiremock-jre8-standalone-2.31.0.jar -UseBasicParsing -OutFile wiremock.jar
6867

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "6.4.0"
2+
".": "6.5.1"
33
}

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
All notable changes to the LaunchDarkly PHP SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [6.5.1](https://github.com/launchdarkly/php-server-sdk/compare/6.5.0...6.5.1) (2025-03-17)
6+
7+
8+
### Bug Fixes
9+
10+
* php 8.4 deprecation for implicitly nullable parameters ([#219](https://github.com/launchdarkly/php-server-sdk/issues/219)) ([1143a16](https://github.com/launchdarkly/php-server-sdk/commit/1143a16bbc537c7cc076e8e7022be1cb81b4087c))
11+
12+
## [6.5.0](https://github.com/launchdarkly/php-server-sdk/compare/6.4.0...6.5.0) (2025-03-13)
13+
14+
15+
### Features
16+
17+
* Inline context for migration events ([#215](https://github.com/launchdarkly/php-server-sdk/issues/215)) ([99e9593](https://github.com/launchdarkly/php-server-sdk/commit/99e9593f48662ccca56fed046ff7603ef99dacc9))
18+
519
## [6.4.0](https://github.com/launchdarkly/php-server-sdk/compare/6.3.0...6.4.0) (2025-01-17)
620

721

src/LaunchDarkly/EvaluationReason.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private function __construct(
166166
?string $ruleId = null,
167167
?string $prerequisiteKey = null,
168168
bool $inExperiment = false,
169-
BigSegmentsEvaluationStatus $bigSegmentsEvaluationStatus = null
169+
?BigSegmentsEvaluationStatus $bigSegmentsEvaluationStatus = null
170170
) {
171171
$this->_kind = $kind;
172172
$this->_errorKind = $errorKind;

src/LaunchDarkly/Impl/Evaluation/EvalResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class EvalResult
2222
* @param EvaluationDetail $detail
2323
* @param bool $forceReasonTracking
2424
*/
25-
public function __construct(EvaluationDetail $detail, bool $forceReasonTracking = false, EvaluatorState $state = null)
25+
public function __construct(EvaluationDetail $detail, bool $forceReasonTracking = false, ?EvaluatorState $state = null)
2626
{
2727
$this->_detail = $detail;
2828
$this->_state = $state;

src/LaunchDarkly/LDClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class LDClient
3939
* The current SDK version.
4040
* @var string
4141
*/
42-
const VERSION = '6.4.0'; // x-release-please-version
42+
const VERSION = '6.5.1'; // x-release-please-version
4343

4444
protected string $_sdkKey;
4545
protected string $_baseUri;

src/LaunchDarkly/Migrations/OpTracker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function build(): array|string
140140
$event = [
141141
'kind' => 'migration_op',
142142
'creationDate' => Util::currentTimeUnixMillis(),
143-
'contextKeys' => $this->context->getKeys(),
143+
'context' => $this->context,
144144
'operation' => $this->operation->value,
145145
'evaluation' => [
146146
'key' => $this->key,

test-service/TestService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getStatus(): array
7676
'secure-mode-hash',
7777
'migrations',
7878
'event-sampling',
79-
'inline-context',
79+
'inline-context-all',
8080
'anonymous-redaction',
8181
'client-prereq-events',
8282
'big-segments'

tests/Migrations/OpTrackerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testCanBuildSuccessfully(): void
4747
$this->assertIsArray($result, 'tracker failed to build event');
4848
$this->assertEquals('migration_op', $result['kind']);
4949
$this->assertEquals('read', $result['operation']);
50-
$this->assertSame(['user' => 'user-key'], $result['contextKeys']);
50+
$this->assertEquals(LDContext::create('user-key'), $result['context']);
5151

5252
$evaluation = $result['evaluation'];
5353
$this->assertEquals('flag', $evaluation['key']);

0 commit comments

Comments
 (0)