Skip to content

Commit 4691615

Browse files
Add PHP 8.1 compatibility to Config
1 parent 2e66132 commit 4691615

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/PHPCR/Shell/Config/Config.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct($data)
2424
$this->data = $data;
2525
}
2626

27+
#[\ReturnTypeWillChange]
2728
public function offsetSet($offset, $value)
2829
{
2930
throw new \InvalidArgumentException(sprintf(
@@ -32,16 +33,19 @@ public function offsetSet($offset, $value)
3233
));
3334
}
3435

36+
#[\ReturnTypeWillChange]
3537
public function offsetExists($offset)
3638
{
3739
return isset($this->data[$offset]);
3840
}
3941

42+
#[\ReturnTypeWillChange]
4043
public function offsetUnset($offset)
4144
{
4245
unset($this->data[$offset]);
4346
}
4447

48+
#[\ReturnTypeWillChange]
4549
public function offsetGet($offset)
4650
{
4751
if (isset($this->data[$offset])) {
@@ -55,26 +59,31 @@ public function offsetGet($offset)
5559
}
5660
}
5761

62+
#[\ReturnTypeWillChange]
5863
public function current()
5964
{
6065
return current($this->data);
6166
}
6267

68+
#[\ReturnTypeWillChange]
6369
public function key()
6470
{
6571
return key($this->data);
6672
}
6773

74+
#[\ReturnTypeWillChange]
6875
public function next()
6976
{
7077
return next($this->data);
7178
}
7279

80+
#[\ReturnTypeWillChange]
7381
public function rewind()
7482
{
7583
return reset($this->data);
7684
}
7785

86+
#[\ReturnTypeWillChange]
7887
public function valid()
7988
{
8089
return current($this->data);

0 commit comments

Comments
 (0)