模版不支持php7.3

浏览:631 发布日期:2019/12/24 分类:ThinkPHP5专区
[2] ErrorException in Template.php line 1047
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

                // 模板函数过滤
                $fun = trim($args[0]);
                if (in_array($fun, $template_deny_funs)) {
                    continue;
                }

                switch (strtolower($fun)) {
                    case 'raw':
                        continue;
                    case 'date':
                        $name = 'date(' . $args[1] . ',!is_numeric(' . $name . ')? strtotime(' . $name . ') : ' . $name . ')';
                        break;
                    case 'first':
                        $name = 'current(' . $name . ')';
                        break;
                    case 'last':
                        $name = 'end(' . $name . ')';
                        break;
php7.1都是正常的,php7.3不支持,希望更新下
最佳答案
评论( 相关
后面还有条评论,点击查看>>