Skip to content

Commit 1ee37ca

Browse files
authored
Merge pull request #6 from moufmouf/text_length
Making text length configurable
2 parents 7c5fb25 + eca6473 commit 1ee37ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FluidColumn.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@ public function string(?int $length = null, bool $fixed = false): FluidColumnOpt
8888
return $this->getOptions();
8989
}
9090

91-
public function text(): FluidColumnOptions
91+
public function text(?int $length = null): FluidColumnOptions
9292
{
9393
$this->column->setType(Type::getType(Type::TEXT));
94+
$this->column->setLength($length);
9495
return $this->getOptions();
9596
}
9697

0 commit comments

Comments
 (0)