File: phpbb/config/config.php
Unmodified
Added
Modified
Removed
Line 50 | Line 50 |
---|
* @param string $key The configuration option's name. * @return bool Whether the configuration option exists. */
|
* @param string $key The configuration option's name. * @return bool Whether the configuration option exists. */
|
| #[\ReturnTypeWillChange]
|
public function offsetExists($key) { return isset($this->config[$key]);
| public function offsetExists($key) { return isset($this->config[$key]);
|
Line 61 | Line 62 |
---|
* @param string $key The configuration option's name. * @return string The configuration value */
|
* @param string $key The configuration option's name. * @return string The configuration value */
|
| #[\ReturnTypeWillChange]
|
public function offsetGet($key) { return (isset($this->config[$key])) ? $this->config[$key] : '';
| public function offsetGet($key) { return (isset($this->config[$key])) ? $this->config[$key] : '';
|
Line 75 | Line 77 |
---|
* @param string $key The configuration option's name. * @param string $value The temporary value. */
|
* @param string $key The configuration option's name. * @param string $value The temporary value. */
|
| #[\ReturnTypeWillChange]
|
public function offsetSet($key, $value) { $this->config[$key] = $value;
| public function offsetSet($key, $value) { $this->config[$key] = $value;
|
Line 85 | Line 88 |
---|
* * @param string $key The configuration option's name. */
|
* * @param string $key The configuration option's name. */
|
| #[\ReturnTypeWillChange]
|
public function offsetUnset($key) { trigger_error('Config values have to be deleted explicitly with the \phpbb\config\config::delete($key) method.', E_USER_ERROR);
| public function offsetUnset($key) { trigger_error('Config values have to be deleted explicitly with the \phpbb\config\config::delete($key) method.', E_USER_ERROR);
|