Remove type-hint inconsistent with expected return value in Database->getVariable
This commit is contained in:
parent
a05baaf249
commit
7295138f8d
1 changed files with 3 additions and 2 deletions
|
@ -1748,9 +1748,10 @@ class Database
|
||||||
* Fetch a database variable
|
* Fetch a database variable
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @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);
|
$result = $this->fetchFirst("SHOW GLOBAL VARIABLES WHERE `Variable_name` = ?", $name);
|
||||||
return $result['Value'] ?? null;
|
return $result['Value'] ?? null;
|
||||||
|
|
Loading…
Reference in a new issue