fix: PHP Warning in state.php

Implicitly marking parameter $subkey as nullable is deprecated
This commit is contained in:
ljm42
2025-02-10 11:45:20 -07:00
parent 32020910ca
commit 38bfa2d589

View File

@@ -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, '');
}