File tree 4 files changed +9
-10
lines changed
src/LaunchDarkly/Migrations
4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 44
44
45
45
strategy :
46
46
matrix :
47
- php-version : [8.1.26, 8.2.13 ]
47
+ php-version : [' 8.1', ' 8.2' ]
48
48
49
49
env :
50
50
LD_INCLUDE_INTEGRATION_TESTS : 1
@@ -54,15 +54,14 @@ jobs:
54
54
with :
55
55
fetch-depth : 0 # If you only need the current version keep this.
56
56
57
+ - name : Setup PHP
58
+ uses : shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35
59
+ with :
60
+ php-version : ${{ matrix.php-version }}
61
+
57
62
- name : Install java support
58
63
run : choco install -y javaruntime
59
64
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
-
66
65
- name : Download wiremock
67
66
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
68
67
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ public function build(): array|string
140
140
$ event = [
141
141
'kind ' => 'migration_op ' ,
142
142
'creationDate ' => Util::currentTimeUnixMillis (),
143
- 'contextKeys ' => $ this ->context -> getKeys () ,
143
+ 'context ' => $ this ->context ,
144
144
'operation ' => $ this ->operation ->value ,
145
145
'evaluation ' => [
146
146
'key ' => $ this ->key ,
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public function getStatus(): array
76
76
'secure-mode-hash ' ,
77
77
'migrations ' ,
78
78
'event-sampling ' ,
79
- 'inline-context ' ,
79
+ 'inline-context-all ' ,
80
80
'anonymous-redaction ' ,
81
81
'client-prereq-events ' ,
82
82
'big-segments '
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public function testCanBuildSuccessfully(): void
47
47
$ this ->assertIsArray ($ result , 'tracker failed to build event ' );
48
48
$ this ->assertEquals ('migration_op ' , $ result ['kind ' ]);
49
49
$ this ->assertEquals ('read ' , $ result ['operation ' ]);
50
- $ this ->assertSame ([ 'user ' => ' user -key '] , $ result ['contextKeys ' ]);
50
+ $ this ->assertEquals (LDContext:: create ( 'user-key ' ) , $ result ['context ' ]);
51
51
52
52
$ evaluation = $ result ['evaluation ' ];
53
53
$ this ->assertEquals ('flag ' , $ evaluation ['key ' ]);
You can’t perform that action at this time.
0 commit comments