Skip to content

Commit ad3a465

Browse files
authored
chore: Update CODEOWNERS (#9)
1 parent 1ae85b3 commit ad3a465

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Repository Maintainers
2-
* @launchdarkly/team-sdk
2+
* @launchdarkly/team-sdk-php

src/EvaluationContextConverter.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,14 @@ private function buildSingleContext(array $attributes, string $kind, string $key
135135
continue;
136136
}
137137

138-
// Validation for name
139138
if ($k === "name" && is_string($v)) {
140139
$builder->name($v);
141140
} elseif ($k === "name") {
142141
$this->logger->error("The attribute 'name' must be a string");
143-
// Validation for anonymous
144142
} elseif ($k === "anonymous" && is_bool($v)) {
145143
$builder->anonymous($v);
146144
} elseif ($k === "anonymous") {
147145
$this->logger->error("The attribute 'anonymous' must be a boolean");
148-
// Validation for privateAttributes
149146
} elseif ($k === "privateAttributes" && is_array($v)) {
150147
$privateAttributes = array_values($v);
151148
foreach ($privateAttributes as $privateAttribute) {
@@ -158,8 +155,8 @@ private function buildSingleContext(array $attributes, string $kind, string $key
158155
}
159156
} elseif ($k === "privateAttributes") {
160157
$this->logger->error("'privateAttributes' in an evaluation context must be an array");
161-
// Catch all for remaining attributes
162158
} else {
159+
// Catch all for remaining attributes
163160
$builder->set($k, $v);
164161
}
165162
}

0 commit comments

Comments
 (0)