Skip to content

Commit

Permalink
TemplateFactory: fixed type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 29, 2020
1 parent e6b3ed4 commit 2ace527
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Bridges/ApplicationLatte/TemplateFactory.php
Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit 2ace527

Please sign in to comment.