Skip to content

Commit

Permalink
feat: force bools for telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
prplwtf committed Dec 28, 2024
1 parent 6b7ea92 commit ba35582
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ public function collect(): array
if (is_null($value)) {
$value = $this->seeder->getDefaultsForFlag($path);
}

// Force booleans
if ($value == "1") {
$value = true;
} elseif ($value == "0") {
$value = false;
}

$flags[$flagName] = $value;
}
Expand Down

0 comments on commit ba35582

Please sign in to comment.