From db61528748fa53befc916ab81b1286ec40eb5c73 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 21 Nov 2016 22:44:31 +0100 Subject: [PATCH] CustomVariable: fix issues with PHP bug #43200 fixes #13271 --- library/Director/CustomVariable/CustomVariable.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/library/Director/CustomVariable/CustomVariable.php b/library/Director/CustomVariable/CustomVariable.php index 242ae3d0..d78fcb75 100644 --- a/library/Director/CustomVariable/CustomVariable.php +++ b/library/Director/CustomVariable/CustomVariable.php @@ -82,7 +82,14 @@ abstract class CustomVariable implements IcingaConfigRenderer abstract public function getValue(); - abstract public function toConfigString($renderExpressions = false); + public function toConfigString($renderExpressions = false) + { + // TODO: this should be an abstract method once we deprecate PHP < 5.3.9 + throw new ProgrammingError( + '%s has no toConfigString() implementation', + get_class($this) + ); + } public function isNew() {