Skip to content

Commit a1cfc4c

Browse files
committed
Fix php deprecation from logs
1 parent 06c1464 commit a1cfc4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/DTO/Bandit/Bandit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function fromArray(array $arr): Bandit
3232
} catch (\Exception $e) {
3333
syslog(
3434
LOG_WARNING,
35-
"[Eppo SDK] invalid timestamp for bandit model ${arr['updatedAt']}: " . $e->getMessage()
35+
"[Eppo SDK] invalid timestamp for bandit model {$arr['updatedAt']}: " . $e->getMessage()
3636
);
3737
$updatedAt = new DateTime();
3838
} finally {

src/EppoClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ private function getAssignmentDetail(
359359
$flag = $config->getFlag($flagKey);
360360

361361
if (!$flag) {
362-
syslog(LOG_WARNING, "[EPPO SDK] No assigned variation; flag not found ${flagKey}");
362+
syslog(LOG_WARNING, "[EPPO SDK] No assigned variation; flag not found {$flagKey}");
363363
return null;
364364
}
365365

@@ -376,7 +376,7 @@ private function getAssignmentDetail(
376376
) {
377377
$actualType = gettype($computedVariation->value);
378378
$eVarType = $expectedVariationType->value;
379-
syslog(LOG_ERR, "[EPPO SDK] Variation does not have the expected type, ${eVarType}; found ${actualType}");
379+
syslog(LOG_ERR, "[EPPO SDK] Variation does not have the expected type, {$eVarType}; found {$actualType}");
380380
return null;
381381
}
382382

0 commit comments

Comments
 (0)