title: Type hinting in class variables
body: <pre><code>&lt;?php
  
  namespace Sandbox;
  
  class Sandbox {
  
      private Connectors\ISandboxConnector $connection;
  
      public function __construct(Connectors\ISandboxConnector $conn) {
          $this-&gt;connection = $conn;
      }
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>For the above code I'm getting the following error:</p>
  
  <pre><code>Parse error: syntax error, unexpected 'Connectors' (T_STRING), expecting variable (T_VARIABLE)
  </code></pre>
  
  <p>When I remove the type hinting and <code>var_dump</code> that $connection variable, it will be <code>private Sandbox\Sandbox</code> and not <code>Sandbox\Connectors\ISandboxconnector</code>, why?</p>