Symfony 2.8.1 error after installation
<p>I am using <strong>Symfony 2.8.1</strong> and work on <strong>Windows 8</strong> with <strong>WAMP Server 2</strong>, <strong>Apache 2.4.2</strong> and PHP <strong>5.4.3</strong>
I have installed Symfony with the command tool with success, but when I try to access the url <strong><a href="http://localhost/Symfony/web/app_dev.php/" rel="nofollow noreferrer">http://localhost/Symfony/web/app_dev.php/</a></strong> I get this error message :</p>

<p><strong><code>FatalErrorException in ProxyGenerator.php line 62: Parse Error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING)</code></strong></p>

<p>Then this list of errors :</p>

<pre><code>in ProxyGenerator.php line 62
at DebugClassLoader-&gt;loadClass() in EntityManager.php line 0
at ProxyFactory-&gt;__construct() in EntityManager.php line 166
at EntityManager-&gt;__construct() in EntityManager.php line 850
at EntityManager::create() in appDevDebugProjectContainer.php line 605
at appDevDebugProjectContainer-&gt;getDoctrine_Orm_DefaultEntityManagerService() in Container.php line 312
at Container-&gt;get() in classes.php line 6695
at ManagerRegistry-&gt;getService() in classes.php line 6665
at AbstractManagerRegistry-&gt;getManagers() in DoctrineDataCollector.php line 65
at DoctrineDataCollector-&gt;collect() in Profiler.php line 218
at Profiler-&gt;collect() in ProfilerListener.php line 128
at ProfilerListener-&gt;onKernelResponse() in WrappedListener.php line 61
at call_user_func() in WrappedListener.php line 61
at WrappedListener-&gt;__invoke() in classes.php line 1853
at call_user_func() in classes.php line 1853
at EventDispatcher-&gt;doDispatch() in classes.php line 1771
at EventDispatcher-&gt;dispatch() in TraceableEventDispatcher.php line 132
at TraceableEventDispatcher-&gt;dispatch() in HttpKernel.php line 179
at HttpKernel-&gt;filterResponse() in HttpKernel.php line 161
at HttpKernel-&gt;handleRaw() in HttpKernel.php line 62
at HttpKernel-&gt;handle() in ContainerAwareHttpKernel.php line 69
at ContainerAwareHttpKernel-&gt;handle() in Kernel.php line 185
at Kernel-&gt;handle() in app_dev.php line 30
at {main}() in app_dev.php line 0
</code></pre>

<p>On line 62 of ProxyGenerator.php :</p>

<pre><code>protected $placeholders = [
    'baseProxyInterface'   =&gt; Proxy::class,
    'additionalProperties' =&gt; '',
];
</code></pre>

<p>The issue seems to be this : </p>

<pre><code>Proxy::class
</code></pre>

<p>When I change it into that :</p>

<pre><code>'Doctrine\Common\Proxy\Proxy'
</code></pre>

<p>It works !</p>

<p>I'd like to know what's happening and if the change I made is a solution for real.</p>

<p>Any thoughts ?
Thanks.</p>