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(