Corveda / PHPSandbox

A PHP-based sandboxing library with a full suite of configuration and validation options.
https://phpsandbox.org
Other
220 stars 46 forks source link

SandboxedString and ReturnTypeWillChange #29

Closed Furgas closed 1 year ago

Furgas commented 1 year ago

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