diff --git a/src/Zipkin/Propagation/Map.php b/src/Zipkin/Propagation/Map.php index 01e9ae8..42db47c 100644 --- a/src/Zipkin/Propagation/Map.php +++ b/src/Zipkin/Propagation/Map.php @@ -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; } }