Closed Khem closed 5 months ago
Do you have an example of the Smarty code that triggers this error?
Thanks for the reply @wisskid
we can produce the error by {section name=sectionname start=0 loop=1 nocache}
In our codebase we have {section name=sectionname start=0 loop=$loop}` where loop is dynamic.
@Khem thanx for your report. The issue has been fixed and released in v5.3.1.
Error:
Smarty\Compile\Base::openTag(): Argument #1 ($compiler) must be of type Smarty\Compiler\Template, string given, called in /var/www/html/vendor/smarty/smarty/src/Compile/Tag/Section.php on line 102.
We have a string passed on $this->openTag('nocache') but expects
Template $compiler
. Must be the same situation when closing the tag.Thanks