Skip to content

Commit 9a94008

Browse files
committed
Updated composer for php 8.1 and fixed style issue
1 parent ce36434 commit 9a94008

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Instrumentation/AwsSdk/_register.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
use OpenTelemetry\Contrib\Instrumentation\AwsSdk\AwsSdkInstrumentation;
56
use OpenTelemetry\SDK\Sdk;
67

78
if (class_exists(Sdk::class)
89
&& Sdk::isInstrumentationDisabled(AwsSdkInstrumentation::NAME)) {
9-
return;
10+
return;
1011
}
1112

1213
if (!extension_loaded('opentelemetry')) {
1314
trigger_error(
1415
'The opentelemetry extension must be loaded to use the AWS SDK auto‑instrumentation',
1516
E_USER_WARNING
1617
);
18+
1719
return;
1820
}
1921

src/Instrumentation/AwsSdk/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"minimum-stability": "dev",
1010
"prefer-stable": true,
1111
"require": {
12-
"php": "^8.2",
12+
"php": "^8.1",
1313
"aws/aws-sdk-php": "^3",
1414
"ext-opentelemetry": "*",
1515
"open-telemetry/api": "^1.0",

0 commit comments

Comments
 (0)