diff --git a/src/Flagsmith.php b/src/Flagsmith.php index 97aade5..28493af 100644 --- a/src/Flagsmith.php +++ b/src/Flagsmith.php @@ -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) @@ -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