diff --git a/composer.json b/composer.json index 6f8fcc9..faefe41 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "zrny/mksql", "description": "Creating and AutoUpdating tables in MySQL", - "version": "0.1.4", + "version": "0.1.5", "type": "library", "keywords": [ "sql", diff --git a/src/ColumnType.php b/src/ColumnType.php index 76ca03f..abe0be5 100644 --- a/src/ColumnType.php +++ b/src/ColumnType.php @@ -49,7 +49,7 @@ class ColumnType public function __construct(int $type, array $params = []) { $this->Type = $type; - $this->Params[] = $params; + $this->Params = $params; } @@ -57,7 +57,7 @@ public function __construct(int $type, array $params = []) public function addParam($par) { - $this->Params = $par; + $this->Params[] = $par; return $this; }