mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
fix(Template): 模板兼容 php8
This commit is contained in:
@@ -925,11 +925,11 @@ class Template
|
||||
$args[1] = str_replace('###', $name, $args[1]);
|
||||
$name = "$fun($args[1])";
|
||||
} else {
|
||||
$name = "$fun($name,$args[1])";
|
||||
$name = "$fun($name ?? '',$args[1])";
|
||||
}
|
||||
} else {
|
||||
if (!empty($args[0])) {
|
||||
$name = "$fun($name)";
|
||||
$name = "$fun($name ?? '')";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user