Skip to content

Commit ab7374c

Browse files
Added return types to remove deprecated warning.
1 parent 61a7fcc commit ab7374c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packstream/Bytes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ public function offsetGet($offset): ?string
3131
return $this->bytes[$offset] ?? null;
3232
}
3333

34-
public function offsetSet($offset, $value)
34+
public function offsetSet($offset, $value): void
3535
{
3636
if ($offset === null)
3737
$this->bytes[] = $value;
3838
else
3939
$this->bytes[$offset] = $value;
4040
}
4141

42-
public function offsetUnset($offset)
42+
public function offsetUnset($offset): void
4343
{
4444
unset($this->bytes[$offset]);
4545
}

0 commit comments

Comments
 (0)