From 2b7611517751178ba0aceec50e46f0481be79ace Mon Sep 17 00:00:00 2001 From: William DURAND Date: Mon, 12 Sep 2011 18:59:44 +0300 Subject: [PATCH] Allowed PHP version under 5.3.6 (See: http://php.net/manual/fr/splfileinfo.getextension.php). Fixes #43 --- Command/BuildSqlCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } }