[ticket/16955] Clean up config classes

PHPBB3-16955
This commit is contained in:
Marc Alexander 2022-12-27 16:16:19 +01:00
parent 2aed7ff4e3
commit ba3a1389e6
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ class config implements \ArrayAccess, \IteratorAggregate, \Countable
{ {
/** /**
* The configuration data * The configuration data
* @var array<string,string> * @var array<string,int|string>
*/ */
protected $config; protected $config;
@ -59,7 +59,7 @@ class config implements \ArrayAccess, \IteratorAggregate, \Countable
* Retrieves a configuration value. * Retrieves a configuration value.
* *
* @param string $key The configuration option's name. * @param string $key The configuration option's name.
* @return string The configuration value * @return int|string The configuration value
*/ */
public function offsetGet($key) public function offsetGet($key)
{ {

View file

@ -55,7 +55,7 @@ class config extends AbstractExtension
/** /**
* Retrieves a configuration value for use in templates. * Retrieves a configuration value for use in templates.
* *
* @return string The configuration value * @return int|string The configuration value
*/ */
public function get_config() public function get_config()
{ {