Skip to content

Commit

Permalink
Convert carrier key to string. (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
devin515 authored May 24, 2023
1 parent 6ad7322 commit de61dd5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Zipkin/Propagation/Map.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,8 @@ public function get($carrier, string $key): ?string
return null;
}

/**
* @var string $k
*/
foreach ($carrier as $k => $value) {
if (strtolower($k) === $lKey) {
if (strtolower((string) $k) === $lKey) {
return $value;
}
}
Expand Down

0 comments on commit de61dd5

Please sign in to comment.