Skip to content

Commit

Permalink
Merge pull request #34 from php-openapi/33-allownull-corresponds-to-d…
Browse files Browse the repository at this point in the history
…efault-value-null

Resolve: allowNull corresponds to default value null #33
  • Loading branch information
cebe authored Nov 12, 2024
2 parents 5c53973 + 2ab975b commit e26e216
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/items/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ public function toColumnSchema():ColumnSchema
if ($this->defaultValue !== null) {
$column->defaultValue = $this->defaultValue;
} elseif ($column->allowNull) {
//@TODO: Need to discuss
$column->defaultValue = null;
}
if (is_array($this->enumValues)) {
Expand Down

0 comments on commit e26e216

Please sign in to comment.