diff --git a/src/Twig.php b/src/Twig.php index 22a6b49..c2fb966 100644 --- a/src/Twig.php +++ b/src/Twig.php @@ -194,6 +194,7 @@ public function getEnvironment() * * @return bool */ + #[\ReturnTypeWillChange] public function offsetExists($key) { return array_key_exists($key, $this->defaultVariables); @@ -206,6 +207,7 @@ public function offsetExists($key) * * @return mixed The key's value, or the default value */ + #[\ReturnTypeWillChange] public function offsetGet($key) { return $this->defaultVariables[$key]; @@ -217,6 +219,7 @@ public function offsetGet($key) * @param string $key The data key * @param mixed $value The data value */ + #[\ReturnTypeWillChange] public function offsetSet($key, $value) { $this->defaultVariables[$key] = $value; @@ -227,6 +230,7 @@ public function offsetSet($key, $value) * * @param string $key The data key */ + #[\ReturnTypeWillChange] public function offsetUnset($key) { unset($this->defaultVariables[$key]);