From b23a531d901f5b08418326dccf1453b884e9392c Mon Sep 17 00:00:00 2001 From: Tomasz Sawicki Date: Mon, 2 Jan 2023 17:01:52 +0100 Subject: [PATCH] Add missing return types in SandboxedString --- src/SandboxedString.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SandboxedString.php b/src/SandboxedString.php index bd9758f..2d7b3a6 100644 --- a/src/SandboxedString.php +++ b/src/SandboxedString.php @@ -64,7 +64,7 @@ public function __invoke() : string { * @param mixed $offset Offset to set value * @param mixed $value Value to set */ - public function offsetSet($offset, $value){ + public function offsetSet($offset, $value) : void { if($offset === null){ $this->value .= $value; } else { @@ -90,7 +90,7 @@ public function offsetExists($offset) : bool { /** Unset string value at specified offset * @param mixed $offset Offset to unset */ - public function offsetUnset($offset){ + public function offsetUnset($offset) : void { unset($this->value[$offset]); } /** Return iterator for string value