Update StringEval.php (#1126)

Fix: Implicitly marking parameter $_template as nullable is deprecated, the explicit nullable type must be used instead
This commit is contained in:
gherosh
2025-04-15 14:19:00 +03:00
committed by GitHub
parent 0d33f3acde
commit 37bea77ea7

View File

@ -31,7 +31,7 @@ class StringEval extends RecompiledPlugin
*
* @return void
*/
public function populate(\Smarty\Template\Source $source, \Smarty\Template $_template = null)
public function populate(\Smarty\Template\Source $source, ?\Smarty\Template $_template = null)
{
$source->uid = sha1($source->name);
$source->timestamp = $source->exists = true;