我从自己的电脑上下载并安装了Symfony 2.8.我复制了我的项目并将其粘贴到我们公司的电脑上.我还没有创建并连接到数据库.我试着这样做php app/console server:run,c:\xampp\htdocs\ninjaz\但之后我收到此错误消息.
Parse error: syntax error, unexpected ':', expecting ';' or '{' in C:\xampp\htdo
cs\Ninjaz\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\Annotation
Registry.php on line 50
编辑:我自己的电脑有XDSP和PHP 7.1.我们公司的PC有XAMPP PHP 5.5.19
这是AnnotationRegistry.php的内容:
<?php
namespace Doctrine\Common\Annotations;
final class AnnotationRegistry
{
/**
* A map of namespaces to use for autoloading purposes based on a PSR-0 convention.
*
* Contains the namespace as key and an array of directories as value. If the value is NULL
* the include path is used for …Run Code Online (Sandbox Code Playgroud)