From ff12dd99b5b86a31102ff876bd1fe2b38c21ac6b Mon Sep 17 00:00:00 2001
From: Molkobain
- * An offset to check for.
- *
- * The return value will be casted to boolean if non-boolean was returned. - * @since 5.0.0 + * @inheritDoc */ - public function offsetExists($offset) + public function offsetExists($offset): bool { if ($this->container->hasParameter($offset)) { return true; @@ -82,17 +71,9 @@ class AppVariable implements ArrayAccess } /** - * Offset to retrieve - * @link https://php.net/manual/en/arrayaccess.offsetget.php - * - * @param mixed $offset
- * The offset to retrieve. - *
- * - * @return mixed Can return all value types. - * @since 5.0.0 + * @inheritDoc */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { if ($this->container->hasParameter($offset)) { return $this->container->getParameter($offset); @@ -105,20 +86,9 @@ class AppVariable implements ArrayAccess } /** - * Offset to set - * @link https://php.net/manual/en/arrayaccess.offsetset.php - * - * @param mixed $offset- * The offset to assign the value to. - *
- * @param mixed $value- * The value to set. - *
- * - * @return void - * @since 5.0.0 + * @inheritDoc */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if ($this->container->hasParameter($offset)) { @@ -141,17 +111,10 @@ class AppVariable implements ArrayAccess } /** - * Offset to unset - * @link https://php.net/manual/en/arrayaccess.offsetunset.php - * - * @param mixed $offset- * The offset to unset. - *
- * - * @return void - * @since 5.0.0 + * @inheritDoc */ - public function offsetUnset($offset){ + public function offsetUnset($offset): void + { if ($this->container->hasParameter($offset)) { $this->container->setParameter($offset, null); return;