title: Phinx migration error, "Could not find class" but looking in the correct file?
body: <p>I'm trying to run database migrations using the phinx library for a Phalcon framework example project called 'Vokuro' and I'm getting this error. The file directory is correct so I'm clueless as to why this is happening.</p>
  
  <p><strong>Cmd:</strong></p>
  
  <pre><code>C:\xampp\htdocs\vokuro\vendor\bin&gt;phinx.bat status -e development
  Phinx by CakePHP - https://phinx.org.
  
  using config file .\phinx.json
  using config parser json
  using migration paths
   - C:\xampp\htdocs\vokuro\db\migrations
  using seed paths
   - C:\xampp\htdocs\vokuro\db\seeds
  using environment development
  ordering by creation time
  
  In Manager.php line 742:
  
    Could not find class "CreateEmailConfirmations" in file "C:\xampp\htdocs\vokuro\vendor\bin\..\..\db\migrations\20190825181051_create_email_confirmations.php"
  </code></pre>
  
  <p><strong>C:\xampp\htdocs\vokuro\db\migrations\20190825181051_create_email_confirmations.php:</strong></p>
  
  <pre><code>&lt;?php
  declare(strict_types=1);
  
  namespace Vokuro\Migrations;
  
  use Phinx\Migration\AbstractMigration;
  
  final class CreateEmailConfirmations extends AbstractMigration
  {
      public function change(): void
      {
          $table = $this-&gt;table('email_confirmations');
          if ($table-&gt;exists()) {
              return;
          }
  
          $table-&gt;addColumn('usersId', 'integer')
              -&gt;addColumn('code', 'char', ['limit' =&gt; 32])
              -&gt;addColumn('createdAt', 'integer')
              -&gt;addColumn('modifiedAt', 'integer', ['null' =&gt; true])
              -&gt;addColumn('confirmed', 'char', ['limit' =&gt; 1, 'default' =&gt; 'N'])
              -&gt;create();
      }
  }
  </code></pre>
  
  <p><strong>C:\xampp\htdocs\vokuro\vendor\robmorgan\phinx\src\Phinx\Migration\Manager.php:</strong></p>
  
  <pre><code>// convert the filename to a class name
  $class = ($namespace === null ? '' : $namespace . '\\') . Util::mapFileNameToClassName(basename($filePath));
  
  if (isset($fileNames[$class])) {
      throw new InvalidArgumentException(sprintf(
          'Migration "%s" has the same name as "%s"',
          basename($filePath),
          $fileNames[$class]
      ));
  }
  
  $fileNames[$class] = basename($filePath);
  
  if ($this-&gt;getOutput()-&gt;getVerbosity() &gt;= OutputInterface::VERBOSITY_DEBUG) {
      $this-&gt;getOutput()-&gt;writeln("Loading class &lt;info&gt;$class&lt;/info&gt; from &lt;info&gt;$filePath&lt;/info&gt;.");
  }
  
  // load the migration file
  $orig_display_errors_setting = ini_get('display_errors');
  ini_set('display_errors', 'On');
  /** @noinspection PhpIncludeInspection */
  require_once $filePath;
  ini_set('display_errors', $orig_display_errors_setting);
  if (!class_exists($class)) {
      throw new InvalidArgumentException(sprintf(
          'Could not find class "%s" in file "%s"',
          $class,
          $filePath
      ));
  }
  </code></pre>