1
0
Fork 0

Remove type-hint inconsistent with expected return value in Database->getVariable

This commit is contained in:
Hypolite Petovan 2022-06-22 07:47:15 -04:00
parent a05baaf249
commit 7295138f8d

View file

@ -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;