mirror of
https://github.com/friendica/friendica
synced 2025-04-29 13:44:23 +02: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
|
@ -62,7 +62,7 @@ class PConfigCache
|
|||
*
|
||||
* @return null|string The value of the config entry or null if not set
|
||||
*/
|
||||
public function get(int $uid, string $cat, $key = null)
|
||||
public function get(int $uid, string $cat, string $key = null)
|
||||
{
|
||||
if (isset($this->config[$uid][$cat][$key])) {
|
||||
return $this->config[$uid][$cat][$key];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue