Permalink
Browse files

Merge pull request #90 from YetiCGN/patch-1

Prevent message "Call to undefined function InvalidArgumentException()"
  • Loading branch information...
2 parents 98424cc + 2170747 commit 60346341046def1a6706870f6271dd65fc835272 @beberlei beberlei committed Jan 10, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
@@ -703,7 +703,7 @@ public function getInExpression($column, $values)
$values = $this->getIdentifiers($values);
if (count($values) == 0) {
- throw \InvalidArgumentException('Values must not be empty.');
+ throw new \InvalidArgumentException('Values must not be empty.');
}
return $column . ' IN (' . implode(', ', $values) . ')';
}
@@ -1700,7 +1700,7 @@ public function getCheckDeclarationSQL(array $definition)
public function getUniqueConstraintDeclarationSQL($name, Index $index)
{
if (count($index->getColumns()) == 0) {
- throw \InvalidArgumentException("Incomplete definition. 'columns' required.");
+ throw new \InvalidArgumentException("Incomplete definition. 'columns' required.");
}
return 'CONSTRAINT ' . $name . ' UNIQUE ('
@@ -1725,7 +1725,7 @@ public function getIndexDeclarationSQL($name, Index $index)
}
if (count($index->getColumns()) == 0) {
- throw \InvalidArgumentException("Incomplete definition. 'columns' required.");
+ throw new \InvalidArgumentException("Incomplete definition. 'columns' required.");
}
return $type . 'INDEX ' . $name . ' ('

0 comments on commit 6034634

Please sign in to comment.