src/FileRepository.php
public function getMigrations(): array
    {
        $migrations = [];

        foreach ($this->getFiles() as $f) {
            if (!class_exists($f['class'], false)) {
                //Attempting to load migration class (we can not relay on autoloading here)
                require_once($f['filename']);
            }

            /** @var MigrationInterface $migration */
            $migration = $this->factory->make($f['class']);

            $migrations[$f['created']->getTimestamp() . $f['chunk']] = $migration->withState(
                new State($f['name'], $f['created'])
            );
        }

        ksort($migrations);

        return $migrations;
    }
public function getMigrations(): array
    {
        $migrations = [];

        foreach ($this->getFiles() as $f) {
            if (!class_exists($f['class'], false)) {
                //Attempting to load migration class (we can not relay on autoloading here)
                require_once($f['filename']);
            }

            /** @var MigrationInterface $migration */
            $migration = $this->factory->make($f['class']);

            $migrations[$f['created']->getTimestamp() . $f['chunk']] = $migration->withState(
                new State($f['name'], $f['created'])
            );
        }

        ksort($migrations);

        return $migrations;
    }
{@inheritdoc}