diff --git a/lib/Horde/Form/Variable.php b/lib/Horde/Form/Variable.php index 85e713f..50b952a 100644 --- a/lib/Horde/Form/Variable.php +++ b/lib/Horde/Form/Variable.php @@ -139,6 +139,15 @@ public function getMessage() return $this->message; } + /** + * Forward calls to undefined methods to $this->type + * + */ + public function __call(string $method, array $args) + { + return $this->type->$method(...$args); + } + /** * Variable constructor. *