Please consider adding return types to SandboxedString methods (offsetSet and offsetUnset) to eliminate errors such as (in PHP >= 8.1):
Return type of PHPSandbox\SandboxedString::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Please consider adding return types to
SandboxedString
methods (offsetSet and offsetUnset) to eliminate errors such as (in PHP >= 8.1):