Skip to content

Commit

Permalink
Issue with type "text" fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarafdev committed Aug 28, 2020
1 parent 9e483f9 commit 3ce0f02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Way/Generators/Syntax/AddToTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private function addColumn($field)

// If we have args, then it needs
// to be formatted a bit differently
if (isset($field['args']))
if (isset($field['args']) && $type !== 'text')
{
$output = sprintf(
"\$table->%s('%s', %s)",
Expand Down Expand Up @@ -96,4 +96,4 @@ protected function addDecorators($decorators)
return $output;
}

}
}

0 comments on commit 3ce0f02

Please sign in to comment.