title: class not found after composer dump-autoload
body: <p>I have a problem with compser autoload.<br> If execute command "composer dump-autoload" then emerges error <strong>Class not found</strong> because <em>autoload_static.php</em> changed.</p>
  
  <p>I have following structure of project:</p>
  
  <p><strong>app</strong> <br>
  -- public <br>
  ------ <em>index.php</em> <br>
  -- src <br>
  ------ <em>WordToImage.php</em> <br>
  -- vendor <br>
  ------ composer <br>
  ------------ <em>(any composer files)</em> <br>
  ------------ <em>autoload_static.php</em> <br>
  -- <em>composer.json</em></p>
  
  <p><em>index.php</em> <br></p>
  
  <pre><code> require_once __DIR__ . '/../vendor/autoload.php';
   use wti\src\WordToImage;
  
   $loader = new WordToImage();
   $loader-&gt;saveImages();
  </code></pre>
  
  <p><em>composer.json</em> <br></p>
  
  <pre><code>{
      "autoload": {
          "psr-4": {
              "wti\\" : "src/"
          }
      }
  } 
  </code></pre>
  
  <p><em>autoload_static.php</em> <br></p>
  
  <pre><code>&lt;?php
  
  // autoload_static.php @generated by Composer
  
  namespace Composer\Autoload;
  
  class ComposerStaticInit416f5acb57c46a86bf05d897e056b40d
  {
      public static $prefixLengthsPsr4 = array (
          'w' =&gt; 
          array (
              'wti\\' =&gt; 4,
          ),
      );
  
      public static $prefixDirsPsr4 = array (
          'wti\\' =&gt; 
          array (
              0 =&gt; __DIR__ . '/../..' . '/src/WordToImage.php',
          ),
      );
  
      public static $classMap = array (
          'wti\\src\\WordToImage' =&gt; __DIR__ . '/../..' . '/src/WordToImage.php',
      );
  
      public static function getInitializer(ClassLoader $loader)
      {
          return \Closure::bind(function () use ($loader) {
              $loader-&gt;prefixLengthsPsr4 = ComposerStaticInit416f5acb57c46a86bf05d897e056b40d::$prefixLengthsPsr4;
              $loader-&gt;prefixDirsPsr4 = ComposerStaticInit416f5acb57c46a86bf05d897e056b40d::$prefixDirsPsr4;
              $loader-&gt;classMap = ComposerStaticInit416f5acb57c46a86bf05d897e056b40d::$classMap;
  
          }, null, ClassLoader::class);
      }
  }
  </code></pre>
  
  <p>When I execute command "composer dump-autoload" then <em>autoload_static.php</em> is changed <br></p>
  
  <pre><code>&lt;?php
  
  // autoload_static.php @generated by Composer
  
  namespace Composer\Autoload;
  
  class ComposerStaticInit416f5acb57c46a86bf05d897e056b40d
  {
      public static $prefixLengthsPsr4 = array (
          'w' =&gt; 
          array (
              'wti\\' =&gt; 4,
          ),
      );
  
      public static $prefixDirsPsr4 = array (
          'wti\\' =&gt; 
          array (
              0 =&gt; __DIR__ . '/../..' . '/src',
          ),
      );
  
      public static function getInitializer(ClassLoader $loader)
      {
          return \Closure::bind(function () use ($loader) {
              $loader-&gt;prefixLengthsPsr4 = ComposerStaticInit416f5acb57c46a86bf05d897e056b40d::$prefixLengthsPsr4;
              $loader-&gt;prefixDirsPsr4 = ComposerStaticInit416f5acb57c46a86bf05d897e056b40d::$prefixDirsPsr4;
  
          }, null, ClassLoader::class);
      }
  }
  </code></pre>
  
  <p>And when I starting the project, an error emerges (Class not found). Please tell me why this strings: <br></p>
  
  <pre><code>0 =&gt; __DIR__ . '/../..' . '/src/WordToImage.php'
  'wti\\src\\WordToImage' =&gt; __DIR__ . '/../..' . '/src/WordToImage.php', 
  </code></pre>
  
  <p>are delete </p>