Commit 21707474 authored by YetiCGN's avatar YetiCGN

Prevent message "Call to undefined function InvalidArgumentException()"

parent 98424cc6
...@@ -703,7 +703,7 @@ abstract class AbstractPlatform ...@@ -703,7 +703,7 @@ abstract class AbstractPlatform
$values = $this->getIdentifiers($values); $values = $this->getIdentifiers($values);
if (count($values) == 0) { if (count($values) == 0) {
throw \InvalidArgumentException('Values must not be empty.'); throw new \InvalidArgumentException('Values must not be empty.');
} }
return $column . ' IN (' . implode(', ', $values) . ')'; return $column . ' IN (' . implode(', ', $values) . ')';
} }
...@@ -1700,7 +1700,7 @@ abstract class AbstractPlatform ...@@ -1700,7 +1700,7 @@ abstract class AbstractPlatform
public function getUniqueConstraintDeclarationSQL($name, Index $index) public function getUniqueConstraintDeclarationSQL($name, Index $index)
{ {
if (count($index->getColumns()) == 0) { if (count($index->getColumns()) == 0) {
throw \InvalidArgumentException("Incomplete definition. 'columns' required."); throw new \InvalidArgumentException("Incomplete definition. 'columns' required.");
} }
return 'CONSTRAINT ' . $name . ' UNIQUE (' return 'CONSTRAINT ' . $name . ' UNIQUE ('
...@@ -1725,7 +1725,7 @@ abstract class AbstractPlatform ...@@ -1725,7 +1725,7 @@ abstract class AbstractPlatform
} }
if (count($index->getColumns()) == 0) { if (count($index->getColumns()) == 0) {
throw \InvalidArgumentException("Incomplete definition. 'columns' required."); throw new \InvalidArgumentException("Incomplete definition. 'columns' required.");
} }
return $type . 'INDEX ' . $name . ' (' return $type . 'INDEX ' . $name . ' ('
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment