diff --git a/composer.json b/composer.json index 48b7db1..98a53cb 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ } ], "require": { - "php": "^7.1 || ^8.0", + "php": "^7.1 || ^8.0 || ^8.1", "ext-sockets": "*", "opentracing/opentracing": "^1.0", "packaged/thrift": "^0.13", diff --git a/src/Jaeger/SpanContext.php b/src/Jaeger/SpanContext.php index 0b7a942..f18eb3d 100644 --- a/src/Jaeger/SpanContext.php +++ b/src/Jaeger/SpanContext.php @@ -45,6 +45,7 @@ public function __construct($traceId, $spanId, $parentId, $flags = null, $baggag /** * {@inheritdoc} */ + #[\ReturnTypeWillChange] public function getIterator() { return new ArrayIterator($this->baggage);