title: Parse error syntax error, unexpected ? [php 7.1.3]
body: <p>Hello i know this problem has been answer a lot but not if i have the newer version of php and i still get this error</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected "?" </p>
  </blockquote>
  
  <p>This error comes from my autoloader in symfony.</p>
  
  <p>My composer .json and .lock both say 7.1.3</p>
  
  <pre><code>"require": {
          "php": "^7.1.3",`
  </code></pre>
  
  <p>I tried just getting the phpinfo..but for some reason that wont work either</p>
  
  <pre><code>phpinfo();
  die();
  </code></pre>
  
  <p>This wont return anything.</p>
  
  <p>Here is smyfonys index.php the error apears at the second and third if statment.</p>
  
  <pre><code>&lt;?php
  
  use App\Kernel;
  use Symfony\Component\Debug\Debug;
  use Symfony\Component\HttpFoundation\Request;
  
  require dirname(__DIR__).'/config/bootstrap.php';
  
  if ($_SERVER['APP_DEBUG']) {
      umask(0000);
  
      Debug::enable();
  }
  
  if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
      Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
  }
  
  if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
      Request::setTrustedHosts([$trustedHosts]);
  }
  
  $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  $request = Request::createFromGlobals();
  $response = $kernel-&gt;handle($request);
  $response-&gt;send();
  $kernel-&gt;terminate($request, $response);
  
  </code></pre>
  
  <p>What i discovered is, that on my windows pc with xampp and <code>7.3.1</code> my sever works no problem.</p>
  
  <p>Om my mac with MAMP with <code>7.1.3</code> it does not work..
  The idea is that both json and phpstorm are set to 7.1 
  So this is why i am very confused....</p>
  
  <p>Any ideas ?</p>
  
  <p>Thank you.</p>