Skip to content

Commit fe70a3a

Browse files
committed
chore: update project version to 2.1.11 and upgrade dependencies
- Incremented project version to `2.1.11` in `composer.json`. - Updated `composer.lock` with new content hash and upgraded `ramsey/uuid` to `4.9.2`. - Modified `ApiClientV2` to remove 'v' prefix from version strings in header construction.
1 parent 8dd808c commit fe70a3a

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"scripts": {
4141
"test": "phpunit"
4242
},
43-
"version": "2.1.10",
43+
"version": "2.1.11",
4444
"config": {
4545
"platform": {
4646
"php": "8.0"

composer.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Client/ApiClientV2.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private function buildHeaders(string $framework = "", string $reporterName = "",
206206
if (!empty($hostData['reporter'])) {
207207
$reporterVersion = $this->normalizeVersion($hostData['reporter']);
208208
if (!empty($reporterVersion)) {
209-
$xClientParts[] = 'reporter_version=v' . $reporterVersion;
209+
$xClientParts[] = 'reporter_version=' . $reporterVersion;
210210
}
211211
}
212212

@@ -217,28 +217,28 @@ private function buildHeaders(string $framework = "", string $reporterName = "",
217217
if (!empty($hostData['framework'])) {
218218
$frameworkVersion = $this->normalizeVersion($hostData['framework']);
219219
if (!empty($frameworkVersion)) {
220-
$xClientParts[] = 'framework_version=v' . $frameworkVersion;
220+
$xClientParts[] = 'framework_version=' . $frameworkVersion;
221221
}
222222
}
223223

224224
if (!empty($hostData['apiClientV1'])) {
225225
$clientV1Version = $this->normalizeVersion($hostData['apiClientV1']);
226226
if (!empty($clientV1Version)) {
227-
$xClientParts[] = 'client_version_v1=v' . $clientV1Version;
227+
$xClientParts[] = 'client_version_v1=' . $clientV1Version;
228228
}
229229
}
230230

231231
if (!empty($hostData['apiClientV2'])) {
232232
$clientV2Version = $this->normalizeVersion($hostData['apiClientV2']);
233233
if (!empty($clientV2Version)) {
234-
$xClientParts[] = 'client_version_v2=v' . $clientV2Version;
234+
$xClientParts[] = 'client_version_v2=' . $clientV2Version;
235235
}
236236
}
237237

238238
if (!empty($hostData['commons'])) {
239239
$commonsVersion = $this->normalizeVersion($hostData['commons']);
240240
if (!empty($commonsVersion)) {
241-
$xClientParts[] = 'core_version=v' . $commonsVersion;
241+
$xClientParts[] = 'core_version=' . $commonsVersion;
242242
}
243243
}
244244

0 commit comments

Comments
 (0)