mirror of
https://github.com/unraid/webgui.git
synced 2026-01-04 08:29:51 -06:00
fix: PHP Warning in state.php
Implicitly marking parameter $subkey as nullable is deprecated
This commit is contained in:
@@ -114,7 +114,7 @@ class ServerState
|
||||
/**
|
||||
* Retrieve the value of a webgui global setting.
|
||||
*/
|
||||
public function getWebguiGlobal(string $key, string $subkey = null) {
|
||||
public function getWebguiGlobal(string $key, ?string $subkey = null) {
|
||||
if (!$subkey) {
|
||||
return _var($this->webguiGlobals, $key, '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user