Skip to content

Commit b946284

Browse files
authored
Merge pull request #2 from xelan/bugfix/php8-deprecations
Fix deprecations on PHP8
2 parents a1ad04f + 8bbc203 commit b946284

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/JsonDiffResult.php

+4
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,25 @@ public function __get($name)
5959
}
6060

6161
// Array Access
62+
#[\ReturnTypeWillChange]
6263
public function offsetExists($offset)
6364
{
6465
return isset($this->{$offset}) ? $this->{$offset} : null;
6566
}
6667

68+
#[\ReturnTypeWillChange]
6769
public function offsetGet($offset)
6870
{
6971
return isset($this->{$offset}) ? $this->{$offset} : null;
7072
}
7173

74+
#[\ReturnTypeWillChange]
7275
public function offsetSet($offset, $value)
7376
{
7477
throw new CannotChangeDiffResult;
7578
}
7679

80+
#[\ReturnTypeWillChange]
7781
public function offsetUnset($offset) {
7882
throw new CannotChangeDiffResult;
7983
}

0 commit comments

Comments
 (0)