title: PHP Symfony error: "did you forget to use a use statement", regardless of class/function
body: <p>I have started building a new Web App using Symfony, but am having issues using classes.</p>
  
  <p>PhpStorm is able to find the functions within the classes (due to the fact that it gives suggestions when you type <code>$className-&gt;</code>. </p>
  
  <p>Also, to prove this is not the same as the other similar questions, I have over simplified it, and even so, the error still occurs.</p>
  
  <p>I have the below in my DefaultController:</p>
  
  <pre><code>&lt;?php
  
  namespace AppBundle\Controller;
  
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  use Symfony\Component\HttpFoundation\Response;
  use Symfony\Component\HttpFoundation\Request;
  use testBundle;
  use AppBundle\domainionClasses\firstlevelchecks;
  
  class DefaultController extends Controller
  {
      /**
       * @Route("/register",name="register")
       */
      public function registerAction(){
          $testClass = new firstlevelchecks(); 
          $testing  = $testClass-&gt;donothing(); //the IDE knows that the function donothing() exists, in fact it suggests it.
          return new Response('');
      }
  }
  </code></pre>
  
  <p>The below is the php class located in <code>AppBundle/domainionClasses/test1.php</code></p>
  
  <pre><code>&lt;?php
  
  namespace AppBundle\domainionClasses;
  
  
  class firstlevelchecks
  {
      function donothing(){
          return null;
      }
  }
  </code></pre>
  
  <p>When loading the <code>/register</code> route, the below Symfony error is displayed:</p>
  
  <blockquote>
    <p>Attempted to load class "firstlevelchecks" from namespace "AppBundle\domainionClasses".
    Did you forget a "use" statement for another namespace?</p>
  </blockquote>
  
  <p>It is attempting to load the class from the correct name space, and I have used a use statement.</p>
  
  <p>Is there anything I am missing here, or is there a problem with Symfony? This is the first time I used the new version of PhpStorm, and have just downloaded the plugin, also the first time I have experienced this issue :(</p>