From ca371fdca2e7d310e004688b258c01abf783ac70 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 7 Apr 2020 15:43:32 +0200 Subject: [PATCH] CompatService: Add method `fetchHost()` Quick-fix for code accessing property `$host` directly. It's protected, though `__get()` still permits access. --- library/Icingadb/Compat/CompatService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Icingadb/Compat/CompatService.php b/library/Icingadb/Compat/CompatService.php index 2a5b96a8..730b23cd 100644 --- a/library/Icingadb/Compat/CompatService.php +++ b/library/Icingadb/Compat/CompatService.php @@ -150,4 +150,9 @@ class CompatService extends Service return $this->host; } + + protected function fetchHost() + { + $this->getHost(); + } }