DevCo/Trek — Issue #1: AS A developer I NEED TO refactor MigrationIterator::isValidMigration() because the regex does not actually represent a valid prefix to a migration file.
Author: treshugart
Created: 2012-03-09 00:59:05+00:00
State: open

Currently the regex reads:

private function isValidMigration($item)
{
return preg_match('/^[^[0-9]/', $item);
}

Should read something like:

private function isValidMigration(SplFileObject $item)
{
return preg_match('/^[^[0-9]/', $item->getBasename());
}

This would require refactoring:

MigrationIterator::detectMigrations()