Weird unexpected T_STRING error
I have a weird PHP error in a current Symfony2 project: unexpected T_STRING in /blahblah/Foo/BarBundle/Entity/User.php on line 1 This is a pretty standard error, usually linked to a mismatched pair of " or '. But here is the code of the file User.php <?php namespace Foo\BarBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="fos_user") * @ORM\Entity(repositoryClass="Foo\BarBundle\Entity\UserRepository") */ class User extends \FOS\UserBundle\Entity\User { // classic user entity The line <?php is line #1. There is no quotes, and the weird thing comes from the fact