diff --git a/src/Bridges/ApplicationLatte/TemplateFactory.php b/src/Bridges/ApplicationLatte/TemplateFactory.php index fa3ff17fd..6cf9c6420 100644 --- a/src/Bridges/ApplicationLatte/TemplateFactory.php +++ b/src/Bridges/ApplicationLatte/TemplateFactory.php @@ -114,7 +114,11 @@ public function createTemplate(UI\Control $control = null, string $class = null) foreach ($params as $key => $value) { if (property_exists($template, $key)) { - $template->$key = $value; + try { + $template->$key = $value; + } catch (\Throwable $e) { + // type mismatch + } } }