解析错误:语法错误,cakephp中出现意外的T_STATIC [英] Parse error: syntax error, unexpected T_STATIC in cakephp

查看:88
本文介绍了解析错误:语法错误,cakephp中出现意外的T_STATIC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面临一些问题,在将我的本地项目上传到服务器时,它抛出一个错误,我无法修复.plz帮助我。这个问题背后的原因是什么。



解析错误:语法错误,意外T_STATIC,期待T_STRING或T_VARIABLE或第221行/home/xxxxxx/public_html/Demo/xxxx/lib/Cake/Core/App.php中的'$'



I am facing some problem ,while uploading my local project to server ,its throwing an error ,which i am not able to fix.plz help me.What is the reason behind this issues.

Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE or '$' in /home/xxxxxx/public_html/Demo/xxxx/lib/Cake/Core/App.php on line 221

if (!empty(static::$legacy[$type])) {
            $type = static::$legacy[$type];
        }





在第221行,这一个存在。



In line 221 this one is present.

推荐答案

第221行/home/xxxxxx/public_html/Demo/xxxx/lib/Cake/Core/App.php中的

'



' in /home/xxxxxx/public_html/Demo/xxxx/lib/Cake/Core/App.php on line 221

if (!empty(static::


legacy


type]) ){
type])) {


这篇关于解析错误:语法错误,cakephp中出现意外的T_STATIC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆