Skip to content

Commit 0f1fa6d

Browse files
authored
Merge pull request #7 from andrew-demb/resolve-symfony-deprecations
Resolve symfony 5.4+ / PHP 8.1+ deprecations
2 parents 23f9777 + c6cf532 commit 0f1fa6d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/Codec/CodecRegistry.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,19 @@ class CodecRegistry implements \ArrayAccess
77
{
88
private $codecs = [];
99

10+
/**
11+
* @return bool
12+
*/
13+
#[\ReturnTypeWillChange]
1014
public function offsetExists($offset)
1115
{
1216
return array_key_exists($offset, $this->codecs);
1317
}
1418

19+
/**
20+
* @return mixed
21+
*/
22+
#[\ReturnTypeWillChange]
1523
public function offsetGet($offset)
1624
{
1725
if (false === array_key_exists($offset, $this->codecs)) {
@@ -21,13 +29,21 @@ public function offsetGet($offset)
2129
return $this->codecs[$offset];
2230
}
2331

32+
/**
33+
* @return $this
34+
*/
35+
#[\ReturnTypeWillChange]
2436
public function offsetSet($offset, $value)
2537
{
2638
$this->codecs[$offset] = $value;
2739

2840
return $this;
2941
}
3042

43+
/**
44+
* @return $this
45+
*/
46+
#[\ReturnTypeWillChange]
3147
public function offsetUnset($offset)
3248
{
3349
if (false === array_key_exists($offset, $this->codecs)) {

src/Span/Context/SpanContext.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ public function getBaggage(): array
6464
return $this->baggage;
6565
}
6666

67+
/**
68+
* @return \Traversable
69+
*/
70+
#[\ReturnTypeWillChange]
6771
public function getIterator()
6872
{
6973
return new \ArrayIterator($this->baggage);

0 commit comments

Comments
 (0)