diff --git a/Command/BuildSqlCommand.php b/Command/BuildSqlCommand.php index ff34c23..2a6cb73 100644 --- a/Command/BuildSqlCommand.php +++ b/Command/BuildSqlCommand.php @@ -78,7 +78,7 @@ EOT foreach ($files as $file) { $this->writeNewFile($output, (string) $file); - if ('sql' === $file->getExtension()) { + if ('sql' === pathinfo($file->getFilename(), PATHINFO_EXTENSION)) { $nbFiles++; } }