From 3fa46ff919a98bb05473f8fb21eaebc910347783 Mon Sep 17 00:00:00 2001 From: Neil Kakkar Date: Tue, 23 Jan 2024 14:26:54 +0000 Subject: [PATCH] fix --- lib/Client.php | 2 +- test/FeatureFlagTest.php | 4 ++-- test/PostHogTest.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Client.php b/lib/Client.php index 94bb2a4..72e8090 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -598,7 +598,7 @@ private function addLocalPersonAndGroupProperties( array $groupProperties ): array { $allPersonProperties = array_merge( - ["\distinct_id" => $distinctId], + ["distinct_id" => $distinctId], $personProperties ); diff --git a/test/FeatureFlagTest.php b/test/FeatureFlagTest.php index 396afd1..5e5fbe2 100644 --- a/test/FeatureFlagTest.php +++ b/test/FeatureFlagTest.php @@ -681,7 +681,7 @@ public function testMatchPropertyRelativeDateOperators(): void "key" => "2022-05-30", ]); } catch (InconclusiveMatchException $exception) { - self::assertStringContainsString("The date set on the flag is not a valid format", $exception->getMessage()); + self::assertStringContainsString("The date provided 1234 must be a string or date object", $exception->getMessage()); } try { @@ -689,7 +689,7 @@ public function testMatchPropertyRelativeDateOperators(): void "key" => 1, ]); } catch (InconclusiveMatchException $exception) { - self::assertStringContainsString("The date set on the flag is not a valid format", $exception->getMessage()); + self::assertStringContainsString("The date provided 1234 must be a string or date object", $exception->getMessage()); } // # Try all possible relative dates diff --git a/test/PostHogTest.php b/test/PostHogTest.php index 52fa4dc..e3a2a7e 100644 --- a/test/PostHogTest.php +++ b/test/PostHogTest.php @@ -495,7 +495,7 @@ public function testDefaultPropertiesGetAddedProperly(): void 'random_key', 'some_id', array("company" => "id:5", "instance" => "app.posthog.com"), - array("\distinct_id" => "override"), + array("distinct_id" => "override"), array("company" => array("\$group_key" => "group_override"), "instance" => array("\$group_key" => "app.posthog.com")) ); $this->assertEquals(