Skip to content

Commit e26e216

Browse files
authored
Merge pull request #34 from php-openapi/33-allownull-corresponds-to-default-value-null
Resolve: allowNull corresponds to default value null #33
2 parents 5c53973 + 2ab975b commit e26e216

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/lib/items/Attribute.php

-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ public function toColumnSchema():ColumnSchema
327327
if ($this->defaultValue !== null) {
328328
$column->defaultValue = $this->defaultValue;
329329
} elseif ($column->allowNull) {
330-
//@TODO: Need to discuss
331330
$column->defaultValue = null;
332331
}
333332
if (is_array($this->enumValues)) {

0 commit comments

Comments
 (0)