CustomVariable: fix issues with PHP bug #43200

fixes #13271
This commit is contained in:
Thomas Gelf 2016-11-21 22:44:31 +01:00
parent 065205dc7a
commit db61528748

View File

@ -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()
{