Skip to content

Commit 256f34d

Browse files
author
Keith Kirk
committed
move version const and update to 1.0.0
1 parent ea28a86 commit 256f34d

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Client.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
*/
2626
class Client extends GuzzleClient
2727
{
28+
/**
29+
* PHP Client Version
30+
*/
31+
const VERSION = '1.0.0';
32+
2833
/**
2934
* Constructor
3035
*

src/Filters/EnrichmentFilters.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
*/
1010
abstract class EnrichmentFilters
1111
{
12-
/**
13-
* PHP Client Version
14-
*/
15-
const VERSION = '0.0.1';
16-
1712
/**
1813
* Generates a UUID v4 as a Message Id
1914
*
@@ -91,7 +86,7 @@ public static function generateDefaultContext(array $context = [])
9186
return array_merge($context, [
9287
'library' => [
9388
'name' => 'analytics-php',
94-
'version' => self::VERSION
89+
'version' => \SegmentIO\Client::VERSION
9590
]
9691
]);
9792
}

tests/Filters/EnrichmentFiltersTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testGenerateDefaultContext()
4747
$context = [
4848
'library' => [
4949
'name' => 'analytics-php',
50-
'version' => EnrichmentFilters::VERSION
50+
'version' => \SegmentIO\Client::VERSION
5151
]
5252
];
5353

0 commit comments

Comments
 (0)