TypeError behoben rückgabewert null durch einen leeren string ersetzt

This commit is contained in:
Marcel Naeve 2024-04-20 23:06:11 +02:00
parent 553af171aa
commit 2d65f6d044
Signed by: manae
GPG Key ID: 3BB68BF9EA669981
1 changed files with 1 additions and 1 deletions

View File

@ -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)] ?? "";
}
/**