Skip to content

Commit a91b6e5

Browse files
Merge pull request #11 from ankurk91/patch/geo
Fix issue with GEO property #10
2 parents 87a3bc4 + 35af65a commit a91b6e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/PropertyTypes/CoordinatesPropertyType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct($names, float $lat, float $lng)
3232

3333
public function getValue(): string
3434
{
35-
return "{$this->lat},{$this->lng}";
35+
return "{$this->lat};{$this->lng}";
3636
}
3737

3838
public function getOriginalValue(): array

tests/Components/EventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function it_can_generate_an_apple_structured_location()
130130

131131
$property = $payload->getProperty('X-APPLE-STRUCTURED-LOCATION');
132132

133-
$this->assertEquals('51.2343,4.4287', $property->getValue());
133+
$this->assertEquals('51.2343;4.4287', $property->getValue());
134134
$this->assertEquals([
135135
'lat' => 51.2343,
136136
'lng' => 4.4287,

tests/PropertyTypes/CoordinatesPropertyTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function it_can_create_a_coordinates_property_type()
1313
$propertyType = new CoordinatesPropertyType('GEO', 10.5, 20.5);
1414

1515
$this->assertEquals(['GEO'], $propertyType->getNames());
16-
$this->assertEquals('10.5,20.5', $propertyType->getValue());
16+
$this->assertEquals('10.5;20.5', $propertyType->getValue());
1717
$this->assertEquals([
1818
'lat' => 10.5,
1919
'lng' => 20.5,

0 commit comments

Comments
 (0)