Unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting T_NS_Separator

我与影子孤独终老i 提交于 2019-11-30 18:33:13

It looks like your new server is running PHP 5.3, while your old one was running an earlier version.

In PHP 5.3, namespace is a keyword, thanks to the new namespace feature.

Your existing Namespace class is going to need to be renamed. The parse error is occurring as the code tries to resolve Namespace::isTalk() into a namespace name. (The syntax for doing so would be something akin to namespace Foo; it becomes confused at seeing the :: resolution operator.)

PAAMAYIM_NEKUDOTAYIM is the name for the :: (it is Hebrew for twice colon)

Check all the lines that contain :: and make sure they are all correct calls.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!