尝试从localhost打开Laravel文件时出错

时间:2016-11-03 07:19:55

标签: php

最近大家好,我已经下载了laravel 3.2.10。但是当我尝试从本地主机打开包时,我收到以下错误:

  

解析错误:语法错误,意外'收益'(T_YIELD),期待'(''   在/opt/lampp/htdocs/2016/laravel-3.2.10/laravel/helpers.php上线   563。

请帮忙,我是软件领域的新手。亲切地忍受我的无知......

1 个答案:

答案 0 :(得分:0)

您安装了哪个版本的PHP?对于旧版本,名为[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.6:single (build-layout) on project igLink: Error reading assemblies: Error locating assembly descriptor: src/assemble/layout.xml [ERROR] [ERROR] [1] [INFO] Searching for file location: Y:\primefaces\workspace\igLink\src\assemble\layout.xml [ERROR] [ERROR] [2] [INFO] File: Y:\primefaces\workspace\igLink\src\assemble\layout.xml does not exist. [ERROR] [ERROR] [3] [INFO] File: Y:\primefaces\workspace\igLink\src\assemble\layout.xml does not exist. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 的Laravel函数与保留名称冲突。要么升级你的PHP版本和Laravel版本,要么使用这个版本的Laravel yield()被覆盖为yield()

https://github.com/laravel/laravel/commit/3298407238fd3e212cdf8d829adc6f519b941052