diff --git a/src/Compiler/Template.php b/src/Compiler/Template.php
index e2a34cc2..78d453c6 100644
--- a/src/Compiler/Template.php
+++ b/src/Compiler/Template.php
@@ -473,7 +473,7 @@ class Template extends BaseCompiler {
public function compileTag($tag, $args, $parameter = []) {
$this->prefixCodeStack[] = $this->prefix_code;
$this->prefix_code = [];
- $result = $this->compileTag2($tag, $args, $parameter);
+ $result = $this->compileTag2(strtolower($tag), $args, $parameter);
$this->prefix_code = array_merge($this->prefix_code, array_pop($this->prefixCodeStack));
return $result;
}
diff --git a/src/Template.php b/src/Template.php
index 8a35d630..b87e1759 100644
--- a/src/Template.php
+++ b/src/Template.php
@@ -726,8 +726,8 @@ class Template extends TemplateBase {
*
* @api Smarty::isCached()
*/
- public function isCached($template = null, $cache_id = null, $compile_id = null, $parent = null) {
- return $this->_execute($template, $cache_id, $compile_id, $parent, 2);
+ public function isCached($template = null, $cache_id = null, $compile_id = null, $parent = null): bool {
+ return (bool) $this->_execute($template, $cache_id, $compile_id, $parent, 2);
}
/**
diff --git a/tests/UnitTests/TemplateSource/TagTests/PluginFunction/PluginFunctionHtmlSelectDateTest.php b/tests/UnitTests/TemplateSource/TagTests/PluginFunction/PluginFunctionHtmlSelectDateTest.php
index 0b945fe9..f48dc8a0 100644
--- a/tests/UnitTests/TemplateSource/TagTests/PluginFunction/PluginFunctionHtmlSelectDateTest.php
+++ b/tests/UnitTests/TemplateSource/TagTests/PluginFunction/PluginFunctionHtmlSelectDateTest.php
@@ -401,7 +401,7 @@ class PluginFunctionHtmlSelectDateTest extends PHPUnit_Smarty
$result = ''
. $n . ''
. $n . '';
- $tpl = $this->smarty->createTemplate('eval:{html_select_date time="2022-02-" day_empty="day" start_year=2005}');
+ $tpl = $this->smarty->createTemplate('eval:{html_select_date time="' . date('Y', $this->now) . '-02-" day_empty="day" start_year=2005}');
$this->assertEquals($result, $tpl->fetch());
}
@@ -410,7 +410,7 @@ class PluginFunctionHtmlSelectDateTest extends PHPUnit_Smarty
$result = ''
. $n . ''
. $n . '';
- $tpl = $this->smarty->createTemplate('eval:{html_select_date time="2022--20" month_empty="month" start_year=2005}');
+ $tpl = $this->smarty->createTemplate('eval:{html_select_date time="' . date('Y', $this->now) . '--20" month_empty="month" start_year=2005}');
$this->assertEquals($result, $tpl->fetch());
}