Skip to content

Commit

Permalink
Remove elseif in favor of simple if
Browse files Browse the repository at this point in the history
  • Loading branch information
bburnichon authored Dec 17, 2016
1 parent 70f2c19 commit d509567
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -2396,7 +2396,9 @@ public function getIndexFieldDeclarationListSQL($fields)
{
if ($fields instanceof Index) {
return implode(', ', $fields->getQuotedColumns($this));
} elseif (!is_array($fields)) {
}

if (!is_array($fields)) {
throw new \InvalidArgumentException('Fields argument should be an Index or an array.');
}

Expand Down

0 comments on commit d509567

Please sign in to comment.