Skip to content

Commit 6de8833

Browse files
committed
Fix post hook exception possibility in opentelemetry-auto-curl
For open-telemetry/opentelemetry-php #1531
1 parent dcc9821 commit 6de8833

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Instrumentation/Curl/src/CurlHandleMetadata.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function updateFromCurlOption(int $option, mixed $value)
137137

138138
break;
139139
case CURLOPT_VERBOSE:
140-
$this->verboseEnabled = $value;
140+
$this->verboseEnabled = (bool) $value;
141141

142142
break;
143143
}
@@ -162,5 +162,4 @@ public static function redactUrlString(string $fullUrl)
162162

163163
return $scheme . $user . $pass . $host . $port . $path . $query . $fragment;
164164
}
165-
166165
}

0 commit comments

Comments
 (0)