Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filecache.php 文件 createPathIfNeeded(string $path) : bool #1046

Closed
anxiaochuang opened this issue Dec 11, 2017 · 1 comment
Closed

filecache.php 文件 createPathIfNeeded(string $path) : bool #1046

anxiaochuang opened this issue Dec 11, 2017 · 1 comment

Comments

@anxiaochuang
Copy link

我用的环境

PHP 版本:5.6
overtrue/wechat 版本:3.0
是否使用了框架?框架名称:
NT2.0 自编框架

问题及现象

描述你的问题现象,报错贴截图粘贴或者贴具体信息,提供必要的代码段
filecache.php 文件
下载代码出现如下:
private function createPathIfNeeded(string $path) : bool
protected function writeFile(string $filename, string $content) : bool
private function getIterator() : \Iterator
创建自定义菜单报错:
PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /Data/code/api.websites.vmp/library/Package/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php on line 192
感谢!

@overtrue
Copy link
Collaborator

更新版本 到最新,或者更新你的 PHP 版本到 7.0 +

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants