TypeError behoben rückgabewert null durch einen leeren string ersetzt
This commit is contained in:
parent
553af171aa
commit
2d65f6d044
|
@ -115,7 +115,7 @@ class StringBuilder {
|
|||
* @return string Wert der Variablen als String.
|
||||
*/
|
||||
public function getVar(string $key) : string {
|
||||
return $this->vars[trim($key)];
|
||||
return $this->vars[trim($key)] ?? "";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue