Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Flagsmith.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function __construct(
$this->environmentTtl = $environmentTtl ?? $this->environmentTtl;
$this->enableLocalEvaluation = !is_null($environmentTtl);
$this->retries = $retries ?? new Retry(3);
$this->analyticsProcessor = $enableAnalytics ? new AnalyticsProcessor($apiKey, $host) : null;
$this->analyticsProcessor = $enableAnalytics ? new AnalyticsProcessor($apiKey, $this->host) : null;
$this->defaultFlagHandler = $defaultFlagHandler ?? $this->defaultFlagHandler;

//We default to using Guzzle for the HTTP client (as this is how it worked in 1.0)
Expand Down Expand Up @@ -146,7 +146,7 @@ public function withEnvironmentTtl(int $environmentTtl): self

/**
* Build with enable Analytics.
* @param bool $enableAnalytics
* @param AnalyticsProcessor $analytics
* @return Flagsmith
*/
public function withAnalytics(AnalyticsProcessor $analytics): self
Expand Down