title: Laravel 4 interface file error: "syntax error, unexpected 'interface' (T_INTERFACE)"
body: <p>When trying to do any actions that invoke my Repo class, I get the following error on the child Repo interface:</p>
  
  <pre><code>"syntax error, unexpected 'interface' (T_INTERFACE)"
  </code></pre>
  
  <p>Here is the code for the Repo class, and the child repo interface file that is the source of the error:</p>
  
  <pre><code>&lt;?php namespace MyProj\Repository\Parent;
  
  use MyProj\Parent;
  use MyProj\Parent\ChildRsrc as ChildRsrc;
  
  class EloquentParentRepo implements ParentRepoIfc 
  {
      public $childRepo;
  
      public function __construct(ChildRsrcRepoIfc $childRepo)
      {
          $this-&gt;childRepo = $childRepo;
      }
      // ...
      }
  </code></pre>
  
  <p>and the child repo interface file:</p>
  
  <pre><code>&lt;?php namespace MyProj\Repository\Parent;
  
  interface ChildRscrRepoIfc  // the error info points to this line
  {
      public function all();
  
      public function create($input);
  
      public function delete($id);
  
      public function find($id);
  }
  </code></pre>
  
  <p>It all is structured just like other code in the project that works fine.  The ChildRsrcRepoIfc and its concrete implementation (EloquentChildRscrRepo) are in the same Parent namespace as everything else referenced here.  I've triple-checked all spelling for typos.  Any help is appreciated, as always.</p>
  
  <p>Update:  I tried removing the DI in the parent class and using direct instantiation but still got the same error:</p>
  
  <pre><code>class EloquentParentRepo implements ParentRepoIfc 
  {
      public function __construct()
      {
          $this-&gt;childRepo = new ChildRsrcRepoIfc;
    //...
  </code></pre>
  
  <p>And I double checked that I am doing the binding in the Repo Svc Provider as follows:</p>
  
  <pre><code>class RepositoryServiceProvider extends ServiceProvider 
  {
      public function register()
      {
       $this-&gt;app-&gt;singleton(
         'MyProj\Repository\Parent\ChildRsrcRepoIfc',
         'MyProj\Repository\Parent\EloquentChildRsrcRepo'
       ); 
  </code></pre>