espelhamento de
https://github.com/friendica/friendica
sincronizado 2025-09-01 21:11:11 +02:00
Remove type-hint inconsistent with expected return value in Database->getVariable
Esse commit está contido em:
pai
a05baaf249
commit
7295138f8d
1 arquivos alterados com 3 adições e 2 exclusões
|
@ -1748,9 +1748,10 @@ class Database
|
|||
* Fetch a database variable
|
||||
*
|
||||
* @param string $name
|
||||
* @return string content
|
||||
* @return string|null content or null if inexistent
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getVariable(string $name): string
|
||||
public function getVariable(string $name)
|
||||
{
|
||||
$result = $this->fetchFirst("SHOW GLOBAL VARIABLES WHERE `Variable_name` = ?", $name);
|
||||
return $result['Value'] ?? null;
|
||||
|
|
Carregando…
Adicionar tabela
Adicionar um link
Referência em uma nova issue