mirror of
https://github.com/friendica/friendica
synced 2025-04-25 11:10:11 +00:00
Added string type-hint for get() and a test case for it
This commit is contained in:
parent
aa249adf6d
commit
4af08d82b2
4 changed files with 14 additions and 2 deletions
|
@ -68,7 +68,7 @@ class ConfigCache
|
|||
*
|
||||
* @return null|mixed Returns the value of the Config entry or null if not set
|
||||
*/
|
||||
public function get(string $cat, $key = null)
|
||||
public function get(string $cat, string $key = null)
|
||||
{
|
||||
if (isset($this->config[$cat][$key])) {
|
||||
return $this->config[$cat][$key];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue