Skip to content

Commit

Permalink
Cleaned up Column API
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed May 23, 2019
1 parent 20e3298 commit b4262cf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Doctrine/DBAL/Schema/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Column extends AbstractAsset
protected $_length;

/** @var int|null */
protected $_precision = 10;
protected $_precision;

/** @var int */
protected $_scale = 0;
Expand Down Expand Up @@ -116,10 +116,6 @@ public function setLength(?int $length) : self

public function setPrecision(?int $precision) : self
{
if ($precision === null) {
$precision = 10; // defaults to 10 when no precision is given.
}

$this->_precision = $precision;

return $this;
Expand Down

0 comments on commit b4262cf

Please sign in to comment.