Skip to content

Commit

Permalink
Throw exception on incorrect extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jan 5, 2017
1 parent 34fe825 commit 289f878
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Query/QueryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function findQueryFilePath(string $name):string {
continue;
}

$this->getExtensionIfValid($fileInfo);
$fileNameNoExtension = strtok($fileInfo->getFilename(), ".");
if($fileNameNoExtension !== $name) {
continue;
Expand Down

0 comments on commit 289f878

Please sign in to comment.