19declare(strict_types=1);
26use OutOfBoundsException;
41 public function offsetSet(mixed $offset, mixed $value): void
43 if ($this->throwOnValueAssignment) {
44 throw new OutOfBoundsException(
"Modifying global Request-Array such as \$_GET is not allowed!");
47 parent::offsetSet($offset, $value);
53 throw new LogicException(
"Modifying global Request-Array such as \$_GET is not allowed!");
Class SuperGlobalDropInReplacement This Class wraps SuperGlobals such as $_GET and $_POST to prevent ...
offsetSet(mixed $offset, mixed $value)
offsetUnset(mixed $offset)
__construct(Factory $factory, array $raw_values, private bool $throwOnValueAssignment=false)
kindlyTo()
Combined validations and transformations for primitive data types that establish a baseline for furth...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc